diff options
-rw-r--r-- | src/usr/local/share/pfSense/pre_upgrade_command | 3 | ||||
-rw-r--r-- | tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL | 1 | ||||
-rw-r--r-- | tools/templates/core_pkg/base/metadir/+INSTALL | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/local/share/pfSense/pre_upgrade_command b/src/usr/local/share/pfSense/pre_upgrade_command index 3a5f817..d51637e 100644 --- a/src/usr/local/share/pfSense/pre_upgrade_command +++ b/src/usr/local/share/pfSense/pre_upgrade_command @@ -85,5 +85,8 @@ if grep -q 'mtree *-PU' /etc/rc.firmware; then fi fi +# Make sure /boot files are not protected with schg +chflags -R noschg /boot >/dev/null 2>&1 + rm /boot/kernel/* diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL index 82aeafc..d86a758 100644 --- a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL +++ b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL @@ -13,6 +13,7 @@ echo "===> Removing schg flag from base files" # Cleanup schg flags chflags -R noschg \ + /boot \ /bin \ /sbin \ /usr/bin \ diff --git a/tools/templates/core_pkg/base/metadir/+INSTALL b/tools/templates/core_pkg/base/metadir/+INSTALL index 82aeafc..d86a758 100644 --- a/tools/templates/core_pkg/base/metadir/+INSTALL +++ b/tools/templates/core_pkg/base/metadir/+INSTALL @@ -13,6 +13,7 @@ echo "===> Removing schg flag from base files" # Cleanup schg flags chflags -R noschg \ + /boot \ /bin \ /sbin \ /usr/bin \ |