aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-12 00:13:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-12 00:13:06 -0300
commit521ddcbf9531a45f3f2d7112e416cef57fc5c3b2 (patch)
tree2f3e064f1e5c2828f0eb9ab1a804acc89030ada5
parentf892ef2b1a10c26af2b9b42179fe96ba7ca70a9f (diff)
downloadhydra-521ddcbf9531a45f3f2d7112e416cef57fc5c3b2.tar.gz
hydra-521ddcbf9531a45f3f2d7112e416cef57fc5c3b2.tar.bz2
Create disk label on provision
-rwxr-xr-xshare/hydractl/provision2
1 files changed, 2 insertions, 0 deletions
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