linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: Unbreak "make isoimage" with isolinux
@ 2016-12-02 23:18 Andi Kleen
  2016-12-19 11:24 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Andi Kleen @ 2016-12-02 23:18 UTC (permalink / raw)
  To: x86; +Cc: mmarek, linux-kernel, Andi Kleen

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.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] x86: Unbreak "make isoimage" with isolinux
  2016-12-02 23:18 [PATCH] x86: Unbreak "make isoimage" with isolinux Andi Kleen
@ 2016-12-19 11:24 ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2016-12-19 11:24 UTC (permalink / raw)
  To: Andi Kleen; +Cc: x86, mmarek, linux-kernel, Andi Kleen

On Fri, 2 Dec 2016, Andi Kleen wrote:
> 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 \

According to https://apps.fedoraproject.org/packages/syslinux-nonlinux/
both isolinux.bin and ldlinux.c32 are installed into /usr/share/syslinux/

So the existing check for isolinux.bin which has the ldlinux.c32 part
inside should just work unless I'm missing something important.

Thanks,

	tglx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] x86: Unbreak "make isoimage" with isolinux
@ 2016-11-18 16:58 Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2016-11-18 16:58 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Andi Kleen

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] x86: Unbreak "make isoimage" with isolinux
@ 2016-03-18 18:02 Andi Kleen
  0 siblings, 0 replies; 4+ messages in thread
From: Andi Kleen @ 2016-03-18 18:02 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Andi Kleen

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 bbe1a62..ae8d937 100644
--- a/arch/x86/boot/Makefile
+++ b/arch/x86/boot/Makefile
@@ -161,6 +161,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 ; \
 			break ; \
-- 
2.5.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-19 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02 23:18 [PATCH] x86: Unbreak "make isoimage" with isolinux Andi Kleen
2016-12-19 11:24 ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2016-11-18 16:58 Andi Kleen
2016-03-18 18:02 Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).