summaryrefslogtreecommitdiffstats
path: root/src/usr/local/share/pfSense
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-18 10:06:08 -0200
committerRenato Botelho <renato@netgate.com>2015-11-18 10:06:08 -0200
commit1f6845f84f6219801df6b38df36527108db06001 (patch)
tree196d4a4b112b1b2410fcf40f6ccf6af88dcd25a0 /src/usr/local/share/pfSense
parent147ab4fd2db98a755157b62f5bc565606e0b4c17 (diff)
downloadpfsense-1f6845f84f6219801df6b38df36527108db06001.zip
pfsense-1f6845f84f6219801df6b38df36527108db06001.tar.gz
At least /boot/loader.rc has schg, make sure to remove it before upgrade. Ticket #5448
Diffstat (limited to 'src/usr/local/share/pfSense')
-rw-r--r--src/usr/local/share/pfSense/pre_upgrade_command3
1 files changed, 3 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/*
OpenPOWER on IntegriCloud