]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix default target in sdsk image
authorbit <j@mailb.org>
Sun, 19 Aug 2018 14:30:43 +0000 (16:30 +0200)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2020 13:29:12 +0000 (14:29 +0100)
gensdsk currently creates a syslinux.cfg file that is invalid if the
filename ends in lkrn.  Fix by setting the default target to label($b)
instead of filename($g).

Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/gensdsk

index 9e8361d491dc3482f9058b043d698277629fa44e..fe302d587719d909314fd729f71aabce70415af9 100755 (executable)
@@ -48,7 +48,7 @@ do
        g=${g:0:8}.krn
        case "$first" in
        "")
-               echo DEFAULT $g
+               echo DEFAULT $b
                ;;
        esac
        first=$g