From e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 8 Aug 2011 18:03:15 -0300 Subject: Setting boot device just for systems with GRUB --- share/hydractl/provision | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'share') 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" -- cgit v1.2.3