summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-10-20 10:38:49 +0000
committerjkh <jkh@FreeBSD.org>1995-10-20 10:38:49 +0000
commitce5e98528963ce9b87b2bd67a3fe0b8083af63d2 (patch)
tree4147d5d8c4483cd021ffec6a313db65ec9954ea4
parent1436cd028d48151df8425fa691187181c0c797d4 (diff)
downloadFreeBSD-src-ce5e98528963ce9b87b2bd67a3fe0b8083af63d2.zip
FreeBSD-src-ce5e98528963ce9b87b2bd67a3fe0b8083af63d2.tar.gz
Fix fix.
-rw-r--r--release/sysinstall/installUpgrade.c9
-rw-r--r--usr.sbin/sysinstall/installUpgrade.c9
2 files changed, 8 insertions, 10 deletions
diff --git a/release/sysinstall/installUpgrade.c b/release/sysinstall/installUpgrade.c
index bfb63c1..0a837d8 100644
--- a/release/sysinstall/installUpgrade.c
+++ b/release/sysinstall/installUpgrade.c
@@ -231,12 +231,14 @@ installUpgrade(char *str)
if (diskLabelCommit(NULL) == RET_FAIL) {
msgConfirm("Not all file systems were properly mounted. Upgrade operation\n"
"aborted.");
+ variable_unset(DISK_PARTITIONED);
return RET_FAIL;
}
if (chroot("/mnt") == RET_FAIL) {
msgConfirm("Unable to chroot to /mnt - something is wrong with the\n"
"root partition or the way it's mounted if this doesn't work.");
+ variable_unset(DISK_PARTITIONED);
return RET_FAIL;
}
chdir("/");
@@ -253,11 +255,8 @@ installUpgrade(char *str)
if (saved_etc) {
msgNotify("Preserving /etc directory..");
- if (vsystem("cp -pr /etc/* %s", saved_etc)) {
- msgConfirm("Unable to back up /etc directory to %s! Upgrade operation\n"
- "aborted.", saved_etc);
- return RET_FAIL;
- }
+ /* cp returns a bogus status, so we can't check the status meaningfully. Bleah. */
+ (void)vsystem("cp -pr /etc/* %s", saved_etc)) {
}
if (file_readable("/kernel")) {
diff --git a/usr.sbin/sysinstall/installUpgrade.c b/usr.sbin/sysinstall/installUpgrade.c
index bfb63c1..0a837d8 100644
--- a/usr.sbin/sysinstall/installUpgrade.c
+++ b/usr.sbin/sysinstall/installUpgrade.c
@@ -231,12 +231,14 @@ installUpgrade(char *str)
if (diskLabelCommit(NULL) == RET_FAIL) {
msgConfirm("Not all file systems were properly mounted. Upgrade operation\n"
"aborted.");
+ variable_unset(DISK_PARTITIONED);
return RET_FAIL;
}
if (chroot("/mnt") == RET_FAIL) {
msgConfirm("Unable to chroot to /mnt - something is wrong with the\n"
"root partition or the way it's mounted if this doesn't work.");
+ variable_unset(DISK_PARTITIONED);
return RET_FAIL;
}
chdir("/");
@@ -253,11 +255,8 @@ installUpgrade(char *str)
if (saved_etc) {
msgNotify("Preserving /etc directory..");
- if (vsystem("cp -pr /etc/* %s", saved_etc)) {
- msgConfirm("Unable to back up /etc directory to %s! Upgrade operation\n"
- "aborted.", saved_etc);
- return RET_FAIL;
- }
+ /* cp returns a bogus status, so we can't check the status meaningfully. Bleah. */
+ (void)vsystem("cp -pr /etc/* %s", saved_etc)) {
}
if (file_readable("/kernel")) {
OpenPOWER on IntegriCloud