summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.homeunix.net>2009-10-10 22:16:29 -0400
committerScott Ullrich <sullrich@G5.homeunix.net>2009-10-10 22:16:29 -0400
commitbfa78efe94ba7af375dfcea6d4e830256ce67cf0 (patch)
tree5073bb09f2b38b1c517992d7112bd8e98eece276 /usr
parent9dd6215c563070f15b70b3d48b339cb47871585a (diff)
downloadpfsense-bfa78efe94ba7af375dfcea6d4e830256ce67cf0.zip
pfsense-bfa78efe94ba7af375dfcea6d4e830256ce67cf0.tar.gz
Ensure glabel exists so we can mount ufs. Fixes #110
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/diag_nanobsd.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index 9458b2c..d51c6d9 100644
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -126,6 +126,7 @@ EOF;
exec("sysctl kern.geom.debugflags=16");
exec("gpart set -a active -i {$ASLICE} {$BOOT_DRIVE}");
exec("/usr/sbin/boot0cfg -s {$ASLICE} -v /dev/{$BOOT_DRIVE}");
+ exec("/sbin/tunefs -L ${AGLABEL_SLICE} /dev/$ACOMPLETE_PATH");
exec("/bin/mkdir /tmp/{$AGLABEL_SLICE}");
exec("/sbin/fsck_ufs -y /dev/{$ACOMPLETE_PATH}");
exec("/sbin/mount /dev/ufs/{$AGLABEL_SLICE} /tmp/{$AGLABEL_SLICE}");
OpenPOWER on IntegriCloud