summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl')
-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"