summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-05 21:28:52 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-05 21:28:52 -0400
commit42be7ac3f4cb4dd9b1673a41fc741c04e5192cf8 (patch)
tree979e8bcef9d94584485b076ef223fc64558ab4ef /usr/local/www/diag_nanobsd.php
parentae396e3010f9e724ee73f15066073343abfe2456 (diff)
downloadpfsense-42be7ac3f4cb4dd9b1673a41fc741c04e5192cf8.zip
pfsense-42be7ac3f4cb4dd9b1673a41fc741c04e5192cf8.tar.gz
Set the slice name after duplicating
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/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 961f768..a8a11dd 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -108,6 +108,7 @@ EOF;
ob_implicit_flush(1);
exec("dd if=/dev/zero of=/dev/{$TOFLASH} bs=1m count=1");
exec("/bin/dd if=/dev/{$BOOTFLASH} of=/dev/{$TOFLASH} bs=64k");
+ exec("/sbin/tunefs -L {$GLABEL_SLICE} /dev/{$COMPLETE_PATH}");
exec("/bin/mkdir /tmp/{$GLABEL_SLICE}");
exec("/sbin/mount /dev/ufs/{$GLABEL_SLICE} /tmp/{$GLABEL_SLICE}");
exec("/bin/cp /etc/fstab /tmp/{$GLABEL_SLICE}/etc/fstab");
OpenPOWER on IntegriCloud