projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4524757
)
Fix grub-install invocation for post-wheezy releases and sid (issue #78)
author
Sebastian Pipping
<sebastian@pipping.org>
Wed, 6 May 2015 17:29:33 +0000
(19:29 +0200)
committer
Michael Prokop
<mika@grml.org>
Fri, 8 May 2015 12:05:17 +0000
(14:05 +0200)
chroot-script
patch
|
blob
|
history
diff --git
a/chroot-script
b/chroot-script
index
1a74aef
..
a06aa7e
100755
(executable)
--- a/
chroot-script
+++ b/
chroot-script
@@
-575,7
+575,16
@@
grub_install() {
done
else
echo "Installing grub on ${GRUB}:"
done
else
echo "Installing grub on ${GRUB}:"
- grub-install --no-floppy "$GRUB"
+ case "$RELEASE" in
+ lenny|squeeze|wheezy)
+ grub-install --no-floppy "$(readlink -f "${GRUB}")"
+ ;;
+ *)
+ echo "(hd0) ${GRUB}" > /boot/grub/device.map
+ grub-install "(hd0)"
+ rm /boot/grub/device.map
+ ;;
+ esac
fi
echo "Adjusting grub configuration for use on ${GRUB}."
fi
echo "Adjusting grub configuration for use on ${GRUB}."