diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-05-30 18:53:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-05-30 18:53:59 -0300 |
commit | ec5f036dd84ca8bb02b352f8c60c13f2ce8e270e (patch) | |
tree | c667aa2ff16c6acb77059cbeee5a1b3799d8222f /share/hydractl | |
parent | 2d2f6a89be6d6730647cc1895c6ca113f3a5e7d1 (diff) | |
download | hydra-ec5f036dd84ca8bb02b352f8c60c13f2ce8e270e.tar.gz hydra-ec5f036dd84ca8bb02b352f8c60c13f2ce8e270e.tar.bz2 |
Adding device_label config parameter
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index 4c1822e..49433ca 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -79,6 +79,7 @@ function hydra_provision_create_volume { function hydra_provision_config { hydra_user_config interactive y "Interactive mode? (y/n)" hydra_user_config device /dev/sdb "Destination device" + hydra_user_config device_label msdos "Device disk label" hydra_user_config root_size 20G "Size of root partition" hydra_user_config swap_size 2000 "Swap size (in MB, 0 to not create it)" hydra_user_config home_size 20G "Size of home partition (0 to not create it, -1 for all free space)" @@ -124,7 +125,7 @@ fi # Disk partitioning. if [ "$swap" != "0" ]; then boot_end=$(($swap_size + 200)) - hydra_safe_run parted -s -- $device mklabel msdos + hydra_safe_run parted -s -- $device mklabel $device_label 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 @@ -136,7 +137,7 @@ if [ "$swap" != "0" ]; then boot_device="$device"2 syst_device="$device"3 else - hydra_safe_run parted -s -- $device mklabel msdos + hydra_safe_run parted -s -- $device mklabel $device_label 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 |