X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=ad2344999c9625cba7f85454c6026a88ff69ea3c;hb=94b63adbec9c06ba30e6e898871462e251ca1823;hp=ace535f26ffb18387ac2f1208a2e57f233de6451;hpb=f01e4a28f9fc31efe0e0738c644195b3922c0211;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index ace535f..ad23449 100755 --- a/chroot-script +++ b/chroot-script @@ -730,26 +730,13 @@ grub_install() { done rm -f /boot/grub/device.map else - echo "Installing grub on ${GRUB}:" - case "$RELEASE" in - lenny|squeeze|wheezy) - local grub_dev - grub_dev="$(readlink -f "${GRUB}")" - if ! grub-install --no-floppy "${grub_dev}" ; then - echo "Error: failed to execute 'grub-install --no-floppy ${grub_dev}'." >&2 - exit 1 - fi - rm -f /boot/grub/device.map - ;; - *) - echo "(hd0) ${GRUB}" > /boot/grub/device.map - if ! grub-install "(hd0)" ; then - echo "Error: failed to execute 'grub-install (hd0)'." >&2 - exit 1 - fi - rm /boot/grub/device.map - ;; - esac + echo "Installing grub on ${GRUB}:" + echo "(hd0) ${GRUB}" > /boot/grub/device.map + if ! grub-install "(hd0)" ; then + echo "Error: failed to execute 'grub-install (hd0)'." >&2 + exit 1 + fi + rm /boot/grub/device.map fi echo "Adjusting grub configuration for use on ${GRUB}."