2009-11-21 Felix Zielcke <fzielcke@z-51.de>
Patch from Loïc Minier <loic.minier@ubuntu.com>. * util/grub.d/30_os-prober.in: Cope with Linux entries where root and /boot are on different devices.
This commit is contained in:
parent
efda854e68
commit
0b787d0e99
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2009-11-21 Felix Zielcke <fzielcke@z-51.de>
|
||||
|
||||
Patch from Loïc Minier <loic.minier@ubuntu.com>.
|
||||
* util/grub.d/30_os-prober.in: Cope with Linux entries where
|
||||
root and /boot are on different devices.
|
||||
|
||||
2009-11-21 Carles Pina i Estany <carles@pina.cat>
|
||||
2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
|
||||
|
||||
|
|
|
@ -88,11 +88,16 @@ EOF
|
|||
LLABEL="${LONGNAME}"
|
||||
fi
|
||||
|
||||
if [ "${LROOT}" != "${LBOOT}" ]; then
|
||||
LKERNEL="${LKERNEL#/boot}"
|
||||
LINITRD="${LINITRD#/boot}"
|
||||
fi
|
||||
|
||||
cat << EOF
|
||||
menuentry "${LLABEL} (on ${DEVICE})" {
|
||||
EOF
|
||||
if [ -z "${prepare_boot_cache}" ]; then
|
||||
prepare_boot_cache="$(prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/")"
|
||||
prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/")"
|
||||
fi
|
||||
printf '%s\n' "${prepare_boot_cache}"
|
||||
cat << EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue