tools/pygrub: Fix extlinux when /boot is a separate partition from /
PATCH 1/1 tools/pygrub: Fix extlinux when /boot is a separate partition from /
Grub and Grub2 already cope with this.
Reported-by Joseph Hom <[email protected]>
Signed-off-by Andrew Cooper <[email protected]>
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
--- tools/pygrub/src/pygrub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tools/pygrub/src/pygrub +3 -1
@@ -418,7 +418,9 @@ class Grub: map(lambda x: (x,grub.ExtLinuxConf.ExtLinuxConfigFile), ["/boot/isolinux/isolinux.cfg", "/boot/extlinux/extlinux.conf", - "/boot/extlinux.conf"]) + \ + "/boot/extlinux.conf", + "/extlinux/extlinux.conf", + "/extlinux.conf"]) + \ map(lambda x: (x,grub.GrubConf.GrubConfigFile), ["/boot/grub/menu.lst", "/boot/grub/grub.conf", "/grub/menu.lst", "/grub/grub.conf"])
Signature · 1 line
1.7.10.4
Ping?
Quoted 25 lines · Andrew Cooper
Grub and Grub2 already cope with this.
Reported-by Joseph Hom <[email protected]>Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>--- tools/pygrub/src/pygrub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)tools/pygrub/src/pygrub +3
-1@@ -418,7 +418,9 @@ class Grub: map(lambda x: (x,grub.ExtLinuxConf.ExtLinuxConfigFile), ["/boot/isolinux/isolinux.cfg", "/boot/extlinux/extlinux.conf", - "/boot/extlinux.conf"]) + \ + "/boot/extlinux.conf", + "/extlinux/extlinux.conf", + "/extlinux.conf"]) + \ map(lambda x: (x,grub.GrubConf.GrubConfigFile), ["/boot/grub/menu.lst", "/boot/grub/grub.conf", "/grub/menu.lst", "/grub/grub.conf"])
Quoted 6 lines · Andrew Cooper
Grub and Grub2 already cope with this.
Reported-by Joseph Hom <[email protected]>Signed-off-by Andrew Cooper <[email protected]>CC Ian Campbell <[email protected]>CC Ian Jackson <[email protected]>
Acked + applied.