aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-15 00:19:51 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-15 00:19:51 -0300
commit5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1 (patch)
tree70ab2d2860a77bc900f904b6e658f18965e73dfa /share/hydractl/provision
parent10957b57107f62f7786c6ee6caa5dfbc782bce5b (diff)
downloadhydra-5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1.tar.gz
hydra-5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1.tar.bz2
Updating partitioning code
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision14
1 files changed, 7 insertions, 7 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 6863431..5a06c20 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -134,10 +134,10 @@ fi
if [ "$swap" != "0" ]; then
boot_end=$(($swap_size + 200))
hydra_safe_run parted -s -- $device mklabel gpt
- hydra_safe_run parted -s -- $device unit MB mkpart primary non-fs 0 2
- hydra_safe_run parted -s -- $device unit MB mkpart primary linux-swap 2 $swap_size
- hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 $swap_size $boot_end
- hydra_safe_run parted -s -- $device unit MB mkpart primary ext2 $boot_end -1
+ hydra_safe_run parted -s -- $device unit MB mkpart non-fs 2 3
+ hydra_safe_run parted -s -- $device unit MB mkpart linux-swap 3 $swap_size
+ hydra_safe_run parted -s -- $device unit MB mkpart ext2 $swap_size $boot_end
+ hydra_safe_run parted -s -- $device unit MB mkpart ext2 $boot_end -1
hydra_safe_run parted -s -- $device set 1 bios_grub on
hydra_safe_run parted -s -- $device set 3 boot on
hydra_safe_run parted -s -- $device set 4 lvm on
@@ -148,9 +148,9 @@ if [ "$swap" != "0" ]; then
syst_device="$device"4
else
hydra_safe_run parted -s -- $device mklabel gpt
- hydra_safe_run parted -s -- $device unit MB mkpart primary non-fs 0 2
- 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 unit MB mkpart non-fs 2 3
+ hydra_safe_run parted -s -- $device unit MB mkpart ext2 3 200
+ hydra_safe_run parted -s -- $device unit MB mkpart ext2 200 -1
hydra_safe_run parted -s -- $device set 1 bios_grub on
hydra_safe_run parted -s -- $device set 2 boot on
hydra_safe_run parted -s -- $device set 3 lvm on