mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do chflags properly even when running multi-user.
This commit is contained in:
parent
5e24be183a
commit
d424167c3c
2 changed files with 10 additions and 10 deletions
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: installUpgrade.c,v 1.52 1997/10/01 01:30:35 jkh Exp $
|
||||
* $Id: installUpgrade.c,v 1.53 1997/10/12 16:21:15 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
|
@ -232,10 +232,6 @@ installUpgrade(dialogMenuItem *self)
|
|||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
}
|
||||
|
||||
if (extractingBin) {
|
||||
msgNotify("chflags'ing old binaries - please wait.");
|
||||
(void)vsystem("chflags -R noschg /mnt/");
|
||||
}
|
||||
msgNotify("Updating /stand on root filesystem");
|
||||
(void)vsystem("find -x /stand | cpio %s -pdum /mnt", cpioVerbosity());
|
||||
|
||||
|
|
@ -272,6 +268,10 @@ installUpgrade(dialogMenuItem *self)
|
|||
"Do you want to continue anyway?", saved_etc) != 0)
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
}
|
||||
|
||||
msgNotify("chflags'ing old binaries - please wait.");
|
||||
(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /kernel*");
|
||||
|
||||
if (file_readable("/kernel")) {
|
||||
msgNotify("Moving old kernel to /kernel.prev");
|
||||
if (system("chflags noschg /kernel && mv /kernel /kernel.prev")) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* This is probably the last program in the `sysinstall' line - the next
|
||||
* generation being essentially a complete rewrite.
|
||||
*
|
||||
* $Id: installUpgrade.c,v 1.52 1997/10/01 01:30:35 jkh Exp $
|
||||
* $Id: installUpgrade.c,v 1.53 1997/10/12 16:21:15 jkh Exp $
|
||||
*
|
||||
* Copyright (c) 1995
|
||||
* Jordan Hubbard. All rights reserved.
|
||||
|
|
@ -232,10 +232,6 @@ installUpgrade(dialogMenuItem *self)
|
|||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
}
|
||||
|
||||
if (extractingBin) {
|
||||
msgNotify("chflags'ing old binaries - please wait.");
|
||||
(void)vsystem("chflags -R noschg /mnt/");
|
||||
}
|
||||
msgNotify("Updating /stand on root filesystem");
|
||||
(void)vsystem("find -x /stand | cpio %s -pdum /mnt", cpioVerbosity());
|
||||
|
||||
|
|
@ -272,6 +268,10 @@ installUpgrade(dialogMenuItem *self)
|
|||
"Do you want to continue anyway?", saved_etc) != 0)
|
||||
return DITEM_FAILURE | DITEM_RESTORE;
|
||||
}
|
||||
|
||||
msgNotify("chflags'ing old binaries - please wait.");
|
||||
(void)vsystem("chflags -R noschg /bin /sbin /usr/sbin /usr/bin /kernel*");
|
||||
|
||||
if (file_readable("/kernel")) {
|
||||
msgNotify("Moving old kernel to /kernel.prev");
|
||||
if (system("chflags noschg /kernel && mv /kernel /kernel.prev")) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue