diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-08-15 00:19:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-08-15 00:19:51 -0300 |
commit | 5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1 (patch) | |
tree | 70ab2d2860a77bc900f904b6e658f18965e73dfa /share/hydractl | |
parent | 10957b57107f62f7786c6ee6caa5dfbc782bce5b (diff) | |
download | hydra-5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1.tar.gz hydra-5f4c5a3cb39b9e91fdaf2c7601fd574f73099ec1.tar.bz2 |
Updating partitioning code
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 14 |
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 |