Revision 53af9233
Added by Brad Davis almost 3 years ago
src/etc/pfSense-rc | ||
---|---|---|
64 | 64 |
/etc/rc.dumpon |
65 | 65 |
|
66 | 66 |
if [ -e /root/force_growfs ]; then |
67 |
/sbin/zpool status pfSense | grep -q mmcsd0 > /dev/null
|
|
67 |
/sbin/gpart show mmcsd0 | grep -q freebsd-zfs
|
|
68 | 68 |
if [ $? -eq 0 ]; then |
69 |
echo "Clearing ZFS label before expanding" |
|
70 |
/sbin/zpool labelclear /dev/mmcsd0 |
|
69 |
/sbin/zpool status pfSense | grep -q mmcsd0 > /dev/null |
|
70 |
if [ $? -eq 0 ]; then |
|
71 |
echo "Clearing ZFS label before expanding" |
|
72 |
/sbin/zpool labelclear /dev/mmcsd0 |
|
73 |
fi |
|
71 | 74 |
fi |
72 | 75 |
/etc/rc.d/growfs onestart |
73 | 76 |
fi |
Also available in: Unified diff
Test to make sure we have a ZFS partition before trying to run zpool commands