mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-02 05:20:21 +00:00
Fix platform postinsts to handle new core.img location.
This commit is contained in:
parent
bc3b27c929
commit
72f466bca8
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
grub2 (2.00-4) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Fix platform postinsts to handle new core.img location.
|
||||||
|
|
||||||
|
-- Colin Watson <cjwatson@debian.org> Fri, 14 Sep 2012 10:28:00 +0100
|
||||||
|
|
||||||
grub2 (2.00-3) experimental; urgency=low
|
grub2 (2.00-3) experimental; urgency=low
|
||||||
|
|
||||||
* Use dh-autoreconf.
|
* Use dh-autoreconf.
|
||||||
|
4
debian/postinst.in
vendored
4
debian/postinst.in
vendored
@ -312,7 +312,8 @@ case "$1" in
|
|||||||
grub-pc)
|
grub-pc)
|
||||||
mkdir -p /boot/grub
|
mkdir -p /boot/grub
|
||||||
|
|
||||||
if test -e /boot/grub/device.map && ! test -e /boot/grub/core.img ; then
|
if test -e /boot/grub/device.map && ! test -e /boot/grub/core.img && \
|
||||||
|
! test -e /boot/grub/@CPU_PLATFORM@/core.img; then
|
||||||
# Looks like your device.map was generated by GRUB Legacy, which
|
# Looks like your device.map was generated by GRUB Legacy, which
|
||||||
# used to generate broken device.map (see #422851). Avoid the risk
|
# used to generate broken device.map (see #422851). Avoid the risk
|
||||||
# by regenerating it.
|
# by regenerating it.
|
||||||
@ -433,6 +434,7 @@ case "$1" in
|
|||||||
touch /boot/grub/grub.cfg
|
touch /boot/grub/grub.cfg
|
||||||
fi
|
fi
|
||||||
elif test -z "$2" || test -e /boot/grub/core.img || \
|
elif test -z "$2" || test -e /boot/grub/core.img || \
|
||||||
|
test -e /boot/grub/@CPU_PLATFORM@/core.img || \
|
||||||
test "$UPGRADE_FROM_GRUB_LEGACY" || test "$wubi_device"; then
|
test "$UPGRADE_FROM_GRUB_LEGACY" || test "$wubi_device"; then
|
||||||
question=grub-pc/install_devices
|
question=grub-pc/install_devices
|
||||||
device_map="$(grub-mkdevicemap -m - | grep -v '^(fd[0-9]\+)' || true)"
|
device_map="$(grub-mkdevicemap -m - | grep -v '^(fd[0-9]\+)' || true)"
|
||||||
|
Loading…
Reference in New Issue
Block a user