summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/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