diff options
| author | Ceri Davies <ceri@FreeBSD.org> | 2006-07-17 22:22:07 +0000 |
|---|---|---|
| committer | Ceri Davies <ceri@FreeBSD.org> | 2006-07-17 22:22:07 +0000 |
| commit | 530dc4005d1e611a7071d41fde26dfb080befb2d (patch) | |
| tree | 911a731f55aee9e9dead1d14f2b03c66a2b0ce52 /usr.sbin/sysinstall | |
| parent | 50d6a0ed4f9e74ad20f43781c5ecb72f06ae3a04 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/sysinstall')
| -rw-r--r-- | usr.sbin/sysinstall/installUpgrade.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usr.sbin/sysinstall/installUpgrade.c b/usr.sbin/sysinstall/installUpgrade.c index 90e4312987b5..6e87ac2c714b 100644 --- a/usr.sbin/sysinstall/installUpgrade.c +++ b/usr.sbin/sysinstall/installUpgrade.c @@ -290,11 +290,11 @@ installUpgrade(dialogMenuItem *self) } msgNotify("chflags'ing old binaries - please wait."); - (void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /var/empty /kernel*"); + (void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /usr/lib /usr/libexec /var/empty /boot/kernel*"); - if (file_readable("/kernel")) { - msgNotify("Moving old kernel to /kernel.prev"); - if (system("mv /kernel /kernel.prev")) { + if (directory_exists("/boot/kernel")) { + msgNotify("Moving old kernel to /boot/kernel.prev"); + if (system("mv /boot/kernel /boot/kernel.prev")) { if (!msgYesNo("Hmmm! I couldn't move the old kernel over! Do you want to\n" "treat this as a big problem and abort the upgrade? Due to the\n" "way that this upgrade process works, you will have to reboot\n" @@ -302,8 +302,9 @@ installUpgrade(dialogMenuItem *self) systemShutdown(1); } else - msgConfirm("NOTICE: Your old kernel is in /kernel.prev should this upgrade\n" - "fail for any reason and you need to boot your old kernel"); + msgConfirm("NOTICE: Your old kernel is in /boot/kernel.prev should this\n" + "upgrade fail for any reason and you need to boot your old\n" + "kernel."); } } |
