diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-08-08 18:03:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-08-08 18:03:15 -0300 |
commit | e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64 (patch) | |
tree | 59bcce4a164e9b535fc10f2555fad40024ef151e | |
parent | 26280fee1361d54ad511f8b37dc42a7d5550fb85 (diff) | |
download | hydra-e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64.tar.gz hydra-e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64.tar.bz2 |
Setting boot device just for systems with GRUB
-rwxr-xr-x | share/hydractl/provision | 11 |
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" |