Merge "Package ldlinux.c32 along with isolinux.bin if it exists"
This commit is contained in:
commit
9ac2a5bbb3
@ -78,9 +78,17 @@ function build_iso() {
|
||||
echo "Copying isolinux.bin"
|
||||
|
||||
ISOLINUX_BIN=$TMP_BOOTLOADER_DIR/isolinux.bin
|
||||
LDLINUX_BIN=$TMP_BOOTLOADER_DIR/ldlinux.c32
|
||||
|
||||
cp $ISOLINUX_BIN "$TMP_IMAGE_DIR/isolinux"
|
||||
|
||||
# Starting from SYSLINUX 5.00, the isolinux.bin is dependent
|
||||
# on ldlinux.c32.
|
||||
# http://www.syslinux.org/wiki/index.php/Library_modules
|
||||
if [ -f "$LDLINUX_BIN" ]; then
|
||||
cp $LDLINUX_BIN "$TMP_IMAGE_DIR/isolinux"
|
||||
fi
|
||||
|
||||
# Copy initrd, kernel
|
||||
echo "Copying kernel to $TMP_IMAGE_DIR/vmlinuz"
|
||||
cp $KERNEL "$TMP_IMAGE_DIR/vmlinuz"
|
||||
|
@ -24,10 +24,19 @@ fi
|
||||
|
||||
if [ $DISTRO_NAME = "fedora" ]; then
|
||||
SYSLINUX_FILE="/usr/share/syslinux/isolinux.bin"
|
||||
LDLINUX_FILE="/usr/share/syslinux/ldlinux.c32"
|
||||
else
|
||||
SYSLINUX_FILE="/usr/lib/syslinux/isolinux.bin"
|
||||
LDLINUX_FILE="/usr/lib/syslinux/ldlinux.c32"
|
||||
fi
|
||||
|
||||
cp $GRUB_FILE $TMP_BOOTLOADER_DIR
|
||||
cp $SHIM_FILE $TMP_BOOTLOADER_DIR
|
||||
cp $SYSLINUX_FILE $TMP_BOOTLOADER_DIR
|
||||
|
||||
# Starting from SYSLINUX 5.00, the isolinux.bin is dependent
|
||||
# on ldlinux.c32.
|
||||
# http://www.syslinux.org/wiki/index.php/Library_modules
|
||||
if [ -f "$LDLINUX_FILE" ]; then
|
||||
cp $LDLINUX_FILE $TMP_BOOTLOADER_DIR
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user