aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-10 13:04:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-10 13:04:23 -0300
commitd0fe423914448677a85c5558daf31713c6e5e6bd (patch)
treed8bd8fa8277adcc1d903e58e64050e0a519e5c83 /share/hydractl/provision
parente054497a94a177b746080d8c2af27ffca07fcf81 (diff)
downloadhydra-d0fe423914448677a85c5558daf31713c6e5e6bd.tar.gz
hydra-d0fe423914448677a85c5558daf31713c6e5e6bd.tar.bz2
Using parted for bootless
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 26abd8e..3e46134 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -50,8 +50,8 @@ if [ "$swap" == "y" ]; then
parted -s -- $device unit MB mkpart primary linux-swap 0 2000
parted -s -- $device unit MB mkpart primary ext2 2000 2200
parted -s -- $device unit MB mkpart primary ext2 2200 -1
- parted -s -- set 2 boot on
- parted -s -- set 3 lvm on
+ parted -s -- $device set 2 boot on
+ parted -s -- $device set 3 lvm on
# Change devices to absolute path names.
swap_device="$device"1
@@ -60,8 +60,8 @@ if [ "$swap" == "y" ]; then
else
parted -s -- $device unit MB mkpart primary ext2 0 200
parted -s -- $device unit MB mkpart primary ext2 200 -1
- parted -s -- set 1 boot on
- parted -s -- set 2 lvm on
+ parted -s -- $device set 1 boot on
+ parted -s -- $device set 2 lvm on
# Change devices to absolute path names.
boot_device="$device"1