From 521ddcbf9531a45f3f2d7112e416cef57fc5c3b2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 12 Apr 2012 00:13:06 -0300 Subject: Create disk label on provision --- share/hydractl/provision | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/hydractl/provision b/share/hydractl/provision index eae3669..b77c4d7 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -48,6 +48,7 @@ read answer # Disk partitioning. if [ "$swap" == "y" ]; then + parted -s -- $device mklabel msdos parted -s -- $device unit MB mkpart primary linux-swap 0 2000 parted -s -- $device unit MB mkpart primary ext2 2000 2200 parted -s -- $device unit MB mkpart primary ext2 2200 -1 @@ -59,6 +60,7 @@ if [ "$swap" == "y" ]; then boot_device="$device"2 syst_device="$device"3 else + parted -s -- $device mklabel msdos parted -s -- $device unit MB mkpart primary ext2 0 200 parted -s -- $device unit MB mkpart primary ext2 200 -1 parted -s -- $device set 1 boot on -- cgit v1.2.3