diff options
author | Scott Ullrich <sullrich@G5.homeunix.net> | 2009-10-10 22:16:29 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@G5.homeunix.net> | 2009-10-10 22:16:29 -0400 |
commit | bfa78efe94ba7af375dfcea6d4e830256ce67cf0 (patch) | |
tree | 5073bb09f2b38b1c517992d7112bd8e98eece276 /usr | |
parent | 9dd6215c563070f15b70b3d48b339cb47871585a (diff) | |
download | pfsense-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.php | 1 |
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}"); |