diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-06-26 20:27:21 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-06-26 20:27:21 -0400 |
commit | 93585de91be476d1bc6194328d3632d08c46c343 (patch) | |
tree | c0d0c39bcac5f8ac18e84fe689f016cfac273a6e /etc/rc.firmware | |
parent | 63f29ad5f8a11c6c68fed7ceb3cd356727d77733 (diff) | |
download | pfsense-93585de91be476d1bc6194328d3632d08c46c343.zip pfsense-93585de91be476d1bc6194328d3632d08c46c343.tar.gz |
Use GLABEL_SLICE
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-x | etc/rc.firmware | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index 42aef6a..18b2526 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -184,11 +184,13 @@ pfSenseNanoBSDupgrade) OLDSLICE="1" TOFLASH="${BOOT_DRIVE}s${SLICE}" COMPLETE_PATH="${BOOT_DRIVE}s${SLICE}a" + GLABEL_SLICE="pfsense1" else SLICE="1" OLDSLICE="2" TOFLASH="${BOOT_DRIVE}s${SLICE}" COMPLETE_PATH="${BOOT_DRIVE}s${SLICE}a" + GLABEL_SLICE="pfsense0" fi echo $SLICE @@ -224,7 +226,7 @@ ENDOFF fi # Add back the corresponding glabel - /sbin/tunefs -L pfsense${SLICE} /dev/$COMPLETE_PATH + /sbin/tunefs -L pfsense${GLABEL_SLICE} /dev/$COMPLETE_PATH echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" /usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE} |