]> gitweb.fluxo.info Git - hydra.git/commitdiff
Rollback
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 13:29:11 +0000 (10:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 12 May 2019 13:29:11 +0000 (10:29 -0300)
share/hydractl/provision

index 3569cbf2a6a0ef73b5cca9004a2a63d2b3336899..24fd6141a603c3610e113a40ab2d00193f9a3c8b 100755 (executable)
@@ -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