aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-13 10:17:44 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-13 10:17:44 -0300
commit3ce7b1337482c20ac6f81e3b8bca0fdae549655f (patch)
tree7f1ea28e1c96ea7c902e17b34b3f9cde8e196922 /share/hydractl/provision
parent7393f413d1ec32f830f9f98acff5f7f5b28fe8dd (diff)
downloadhydra-3ce7b1337482c20ac6f81e3b8bca0fdae549655f.tar.gz
hydra-3ce7b1337482c20ac6f81e3b8bca0fdae549655f.tar.bz2
Ensure a post-MBR gap at provision
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 2269f73..290395c 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -49,7 +49,7 @@ read answer
# Disk partitioning.
if [ "$swap" == "y" ]; then
hydra_safe_run parted -s -- $device mklabel msdos
- hydra_safe_run parted -s -- $device unit MB mkpart primary linux-swap 0 2000
+ hydra_safe_run parted -s -- $device unit MB mkpart primary linux-swap 2 2000
hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 2000 2200
hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 2200 -1
hydra_safe_run parted -s -- $device set 2 boot on
@@ -61,7 +61,7 @@ if [ "$swap" == "y" ]; then
syst_device="$device"3
else
hydra_safe_run parted -s -- $device mklabel msdos
- hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 0 200
+ hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 2 200
hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 200 -1
hydra_safe_run parted -s -- $device set 1 boot on
hydra_safe_run parted -s -- $device set 2 lvm on