Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1525529 > unrolled thread

[PATCH] x86: Unbreak "make isoimage" with isolinux

Started byAndi Kleen <andi@firstfloor.org>
First post2016-11-18 18:00 +0100
Last post2016-11-18 18:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86: Unbreak "make isoimage" with isolinux Andi Kleen <andi@firstfloor.org> - 2016-11-18 18:00 +0100

#1525529 — [PATCH] x86: Unbreak "make isoimage" with isolinux

FromAndi Kleen <andi@firstfloor.org>
Date2016-11-18 18:00 +0100
Subject[PATCH] x86: Unbreak "make isoimage" with isolinux
Message-ID<sEUG6-1ff-29@gated-at.bofh.it>
From: Andi Kleen <ak@linux.intel.com>

make isoimage doesn't work on recent Fedora versions, the resulting image
always fails with "Failed to load ldlinux.c32 ..."

The fix (originally found by "SebbiUltimate" on reddit) just copies
the file into the iso image.

On Fedora, this is somewhat complicated by the fact that the syslinux
package was split into syslinux and "syslinux-nonlinux", but the
ldlinux.c32 file needed to boot Linux is actually in the
syslinux-nonlinux package(!). So it will only work when that
package is installed, which updates from older versions don't do.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/boot/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
index 12ea8f8384f4..8d0919872c5c 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -160,6 +160,8 @@ isoimage: $(obj)/bzImage
 	-rm -rf $(obj)/isoimage
 	mkdir $(obj)/isoimage
 	for i in lib lib64 share end ; do \
+		[ -r /usr/$$i/syslinux/ldlinux.c32 ] && \
+			cp /usr/$$i/syslinux/ldlinux.c32 $(obj)/isoimage ; \
 		if [ -f /usr/$$i/syslinux/isolinux.bin ] ; then \
 			cp /usr/$$i/syslinux/isolinux.bin $(obj)/isoimage ; \
 			if [ -f /usr/$$i/syslinux/ldlinux.c32 ]; then \
-- 
2.5.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web