summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-26 20:27:21 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-26 20:27:21 -0400
commit93585de91be476d1bc6194328d3632d08c46c343 (patch)
treec0d0c39bcac5f8ac18e84fe689f016cfac273a6e /etc/rc.firmware
parent63f29ad5f8a11c6c68fed7ceb3cd356727d77733 (diff)
downloadpfsense-93585de91be476d1bc6194328d3632d08c46c343.zip
pfsense-93585de91be476d1bc6194328d3632d08c46c343.tar.gz
Use GLABEL_SLICE
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware4
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}
OpenPOWER on IntegriCloud