summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-08 18:03:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-08 18:03:15 -0300
commite739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64 (patch)
tree59bcce4a164e9b535fc10f2555fad40024ef151e
parent26280fee1361d54ad511f8b37dc42a7d5550fb85 (diff)
downloadhydra-e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64.tar.gz
hydra-e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64.tar.bz2
Setting boot device just for systems with GRUB
-rwxr-xr-xshare/hydractl/provision11
1 files changed, 5 insertions, 6 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 12e27da..de03fcf 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -132,14 +132,13 @@ else
EOF
fi
-# Boot.
-echo "Boot device setup..."
-mkfs.ext3 "$device"2
-mount "$device"2 /tmp/debootstrap/boot
-echo "$device""2 /boot ext3 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab
-
# Grub.
if [ "$grub" == "y" ]; then
+ echo "Boot device setup..."
+ mkfs.ext3 "$device"2
+ mount "$device"2 /tmp/debootstrap/boot
+ echo "$device""2 /boot ext3 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab
+
echo "Setting up GRUB..."
chroot /tmp/debootstrap/ apt-get install grub-pc -y
grub-install --no-floppy "$device"