summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-27 00:36:32 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-27 00:36:32 -0400
commitdb7c751306fa4ae12a9849385dab90d1aa386464 (patch)
tree973c803659a4cef3cc3be8e8891f37d28b44d35e /etc
parent79b9570c5b7affc9e70b4bef0be4e2ce728f881b (diff)
downloadpfsense-db7c751306fa4ae12a9849385dab90d1aa386464.zip
pfsense-db7c751306fa4ae12a9849385dab90d1aa386464.tar.gz
use GLABEL_SLICE
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.firmware19
1 files changed, 14 insertions, 5 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index d540f4c..e61512b 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -19,6 +19,9 @@ if [ $ACTION != "upgrade" ]; then
fi
output_env_to_log() {
+ date >> /cf/upgrade_log.txt
+ echo "" >> /cf/upgrade_log.txt
+
ls -lah /dev/ >> /cf/upgrade_log.txt
echo "" >> /cf/upgrade_log.txt
@@ -210,8 +213,8 @@ ENDOFF
rm -f $IMG
# Mount newly prepared slice
- mkdir /tmp/$COMPLETE_PATH
- mount /dev/$COMPLETE_PATH /tmp/$COMPLETE_PATH
+ mkdir /tmp/$GLABEL_SLICE
+ mount /dev/ufs/$GLABEL_SLICE /tmp/$GLABEL_SLICE
# If /tmp/$TOFLASH/tmp/post_upgrade_command exists
# after update then execute the command.
@@ -220,18 +223,21 @@ ENDOFF
fi
# Update fstab
- sed -i "" "s/pfsense${OLDSLICE}/pfsense${SLICE}/g" /tmp/$TOFLASH/etc/fstab
+ sed -i "" "s/pfsense${OLDSLICE}/pfsense${SLICE}/g" /tmp/$GLABEL_SLICE/etc/fstab
echo "" >> /cf/upgrade_log.txt
- cat /tmp/$TOFLASH/etc/fstab >> /cf/upgrade_log.txt
+ cat /tmp/$GLABEL_SLICE/etc/fstab >> /cf/upgrade_log.txt
# Unmount newly prepared slice
- umount /tmp/$COMPLETE_PATH
+ umount /tmp/$GLABEL_SLICE
# Remove extra stuff
rm -rf /etc/rc.conf
rm -rf /etc/motd
rm -rf /usr/savecore/*
+ date >> /cf/upgrade_log.txt
+ echo "" >> /cf/upgrade_log.txt
+
# remount /cf ro
/etc/rc.conf_mount_ro
/bin/sync
@@ -324,6 +330,9 @@ pfSenseupgrade)
rm -rf /etc/motd
rm -rf /usr/savecore/*
+ date >> /cf/upgrade_log.txt
+ echo "" >> /cf/upgrade_log.txt
+
# remount /cf ro
/etc/rc.conf_mount_ro
OpenPOWER on IntegriCloud