From ba8e08709a2c4bbb35e1640d7ac744da7e58b6e5 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Sun, 14 Nov 2010 05:36:28 -0700 Subject: Copy /boot/loader.conf.local to the newly imaged slice. Ticket #892 --- etc/rc.firmware | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/rc.firmware b/etc/rc.firmware index a7cbfaf..b10737e 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -287,6 +287,12 @@ pfSenseNanoBSDupgrade) mkdir /tmp/$GLABEL_SLICE mount /dev/ufs/$GLABEL_SLICE /tmp/$GLABEL_SLICE + # If /boot/loader.conf.local exists + # copy to the other slice. + if [ -f /boot/loader.conf.local ]; then + cp /boot/loader.conf.local /tmp/$GLABEL_SLICE/boot/loader.conf.local + fi + # If /tmp/$GLABEL_SLICE/tmp/post_upgrade_command exists # after update then execute the command. if [ -f /tmp/$GLABEL_SLICE/tmp/post_upgrade_command ]; then -- cgit v1.1