diff options
author | jkh <jkh@FreeBSD.org> | 1995-10-20 10:38:49 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-10-20 10:38:49 +0000 |
commit | ce5e98528963ce9b87b2bd67a3fe0b8083af63d2 (patch) | |
tree | 4147d5d8c4483cd021ffec6a313db65ec9954ea4 /release | |
parent | 1436cd028d48151df8425fa691187181c0c797d4 (diff) | |
download | FreeBSD-src-ce5e98528963ce9b87b2bd67a3fe0b8083af63d2.zip FreeBSD-src-ce5e98528963ce9b87b2bd67a3fe0b8083af63d2.tar.gz |
Fix fix.
Diffstat (limited to 'release')
-rw-r--r-- | release/sysinstall/installUpgrade.c | 9 |
1 files changed, 4 insertions, 5 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")) { |