aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-12 10:29:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-12 10:29:11 -0300
commite9615875197c0b18469f274daa3e1849c45b753d (patch)
treea8a60155f3d576aa3962ef61ac3d70c94a7ffc66
parentb3f9f227a8f5ce20c64d87819f68775cc286d6a9 (diff)
downloadhydra-e9615875197c0b18469f274daa3e1849c45b753d.tar.gz
hydra-e9615875197c0b18469f274daa3e1849c45b753d.tar.bz2
Rollback
-rwxr-xr-xshare/hydractl/provision22
1 files changed, 11 insertions, 11 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 3569cbf..24fd614 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -173,9 +173,9 @@ if [ "$num_devices" != "1" ]; then
device="/dev/md/$hostname"
for dev in $physical_devices; do
- hydra_sudo_run parted -s -- $dev mklabel gpt
- hydra_sudo_run parted -s -a optimal -- $dev mkpart ext4 1M 100%
- hydra_sudo_run parted -s -- $dev set 1 raid on
+ hydra_sudo_run parted -s -- $dev mklabel gpt
+ hydra_sudo_run parted -s -- $dev mkpart ext4 1M 100%
+ hydra_sudo_run parted -s -- $dev set 1 raid on
done
mdadm --create --verbose $device --level=1 --raid-devices=$num_devices $physical_devices
@@ -187,20 +187,20 @@ if [ "$num_devices" != "1" ]; then
syst_device="$device"
else
# Regular disk partitioning.
- hydra_sudo_run parted -s -- $device mklabel gpt
- hydra_sudo_run parted -s -a optimal -- $device unit MB mkpart non-fs 2 3
- hydra_sudo_run parted -s -- $device set 1 bios_grub on
+ hydra_sudo_run parted -s -- $device mklabel gpt
+ hydra_sudo_run parted -s -- $device unit MB mkpart non-fs 2 3
+ hydra_sudo_run parted -s -- $device set 1 bios_grub on
if [ "$encrypt" == "y" ]; then
- hydra_sudo_run parted -s -a optimal -- $device unit MB mkpart ext2 3 -1
- hydra_sudo_run parted -s -- $device set 2 lvm on
+ hydra_sudo_run parted -s -- $device unit MB mkpart ext2 3 -1
+ hydra_sudo_run parted -s -- $device set 2 lvm on
boot_device="$device"2
syst_device="$device"2
else
- hydra_sudo_run parted -s -a optimal -- $device unit MB mkpart ext2 3 200
- hydra_sudo_run parted -s -a optimal -- $device unit MB mkpart ext2 200 -1
- hydra_sudo_run parted -s -- $device set 3 lvm on
+ hydra_sudo_run parted -s -- $device unit MB mkpart ext2 3 200
+ hydra_sudo_run parted -s -- $device unit MB mkpart ext2 200 -1
+ hydra_sudo_run parted -s -- $device set 3 lvm on
boot_device="$device"2
syst_device="$device"3