summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/tape.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-17 08:47:13 +0000
committerjkh <jkh@FreeBSD.org>1997-01-17 08:47:13 +0000
commit01b3e9a58be60d613a1575a5cd4341ab143f4ad3 (patch)
tree1d6cafcedb59c96ea3e9343e95b8c4dc482c6a3b /release/sysinstall/tape.c
parent83c2f5687e154ea6600cc012b5003a582b4f0dee (diff)
downloadFreeBSD-src-01b3e9a58be60d613a1575a5cd4341ab143f4ad3.zip
FreeBSD-src-01b3e9a58be60d613a1575a5cd4341ab143f4ad3.tar.gz
Now that I know which parts of the installation really need it (since
there's no menu display bug to work around now), be far more selective in my use of DITEM_RECREATE (which is slow and involves much screen I/O).
Diffstat (limited to 'release/sysinstall/tape.c')
-rw-r--r--release/sysinstall/tape.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/sysinstall/tape.c b/release/sysinstall/tape.c
index a77cf0c..31c99dd 100644
--- a/release/sysinstall/tape.c
+++ b/release/sysinstall/tape.c
@@ -59,8 +59,11 @@ mediaInitTape(Device *dev)
msgDebug("Tape init routine called for %s (private dir is %s)\n", dev->name, dev->private);
Mkdir(dev->private);
- if (chdir(dev->private))
+ if (chdir(dev->private)) {
+ msgConfirm("Unable to CD to %s before extracting tape!\n"
+ "Tape media not selected.", dev->private);
return FALSE;
+ }
/* We know the tape is already in the drive, so go for it */
msgNotify("Attempting to extract from %s...", dev->description);
if (!strcmp(dev->name, "rft0"))
@@ -73,7 +76,8 @@ mediaInitTape(Device *dev)
return TRUE;
}
else
- msgConfirm("Tape extract command failed with status %d!", i);
+ msgConfirm("Tape extract command failed with status %d!\n"
+ "Unable to use tape media.", i);
return FALSE;
}
OpenPOWER on IntegriCloud