You are right.
Just add
-eltorito-alt-boot -no-emul-boot -eltorito-platform 0xEF \
-eltorito-boot boot/syslinux/efiboot.img
ncmprhnsbl wrote: ↑26 Apr 2026, 10:47
pointing out that our ISOs do not support UEFI booting
You are right.
Just add
-eltorito-alt-boot -no-emul-boot -eltorito-platform 0xEF \
-eltorito-boot boot/syslinux/efiboot.img
sudo qemu-kvm -m 2G -enable-kvm -cdrom /mnt/sda1/boot/Porteus-XFCE-v5.01-x86_64.iso &
Porteus-XFCE-v5.01
BIOS: /boot/syslinux/isolinux.bin
Porteus-XFCE-v5.1make_iso.sh
BIOS: /boot/syslinux/isolinux.bin
Code: Select all
#!/bin/bash
# ---------------------------------------------------
# Script to create bootable ISO in Linux
# usage: make_iso.sh [ /tmp/porteus.iso ]
# author: Tomas M. <http://www.linux-live.org>
# updated for Porteus by fanthom <http://www.porteus.org>
# ---------------------------------------------------
if [ "$1" = "--help" -o "$1" = "-h" ]; then
echo "This script will create bootable ISO from files in curent directory."
echo "Current directory must be writable."
echo "example: $0 /mnt/sda5/porteus.iso"
exit
fi
CDLABEL="Porteus"
ISONAME=$(readlink -f "$1")
cd $(dirname $0)
if [ "$ISONAME" = "" ]; then
SUGGEST=$(readlink -f ../../$(basename $(pwd)).iso)
echo -ne "Target ISO file name [ Hit enter for $SUGGEST ]: "
read ISONAME
if [ "$ISONAME" = "" ]; then ISONAME="$SUGGEST"; fi
fi
mkisofs -o "$ISONAME" -v -l -J -joliet-long -R -D -A "$CDLABEL" \
-V "$CDLABEL" -no-emul-boot -boot-info-table -boot-load-size 4 \
-b boot/syslinux/isolinux.bin -c boot/syslinux/isolinux.boot ../.slackware64-xfce-currentmake_slackware_live.sh
BIOS: /boot/syslinux/isolinux.bin
UEFI: /boot/syslinux/efiboot.img
Code: Select all
# Create an ISO file from a directory's content:
#
function create_iso() {
TOPDIR=${1:-"${LIVE_STAGING}"}
cd "$TOPDIR"
# Tag the type of live environment to the ISO filename:
if [ "$LIVEDE" = "SLACKWARE" ]; then
ISOTAG=""
else
ISOTAG="-$(echo $LIVEDE |tr A-Z a-z)"
fi
# Determine whether we add UEFI boot capabilities to the ISO:
if [ -f boot/syslinux/efiboot.img -a "$USEXORR" = "NO" ]; then
UEFI_OPTS="-eltorito-alt-boot -no-emul-boot -eltorito-platform 0xEF -eltorito-boot boot/syslinux/efiboot.img"
elif [ -f boot/syslinux/efiboot.img -a "$USEXORR" = "YES" ]; then
UEFI_OPTS="-eltorito-alt-boot -e boot/syslinux/efiboot.img -no-emul-boot"
else
UEFI_OPTS=""
fi
# Time to determine the output filename, now that we know all the variables
# and ensured that the OUTPUT directory exists:
OUTFILE=${OUTFILE:-"${OUTPUT}/${DISTRO}${DIRSUFFIX}-live${ISOTAG}-${SL_VERSION}.iso"}
if [ "$USEXORR" = "NO" ]; then
mkisofs -o "${OUTFILE}" \
-V "${MEDIALABEL}" \
-R -J \
-hide-rr-moved \
-v -d -N \
-no-emul-boot -boot-load-size ${BOOTLOADSIZE} -boot-info-table \
-sort boot/syslinux/iso.sort \
-b boot/syslinux/isolinux.bin \
-c boot/syslinux/isolinux.boot \
${UEFI_OPTS} \
-preparer "$(echo $LIVEDE |sed 's/BASE//') Live built by ${BUILDER}" \
-publisher "The Slackware Linux Project - http://www.slackware.com/" \
-A "${DISTRO^}-${SL_VERSION} for ${SL_ARCH} ($(echo $LIVEDE |sed 's/BASE//') Live $VERSION)" \
-x ./$(basename ${LIVE_WORK}) \
-x ./${LIVEMAIN}/bootinst \
-x boot/syslinux/testing \
.
if [ "$SL_ARCH" = "x86_64" -o "$EFI32" = "YES" ]; then
# Make this a hybrid ISO with UEFI boot support on x86_64.
# On 32bit, the variable EFI32 must be explicitly enabled.
isohybrid -u "${OUTFILE}"
else
isohybrid "${OUTFILE}"
fi # End UEFI hybrid ISO.
else
echo "-- Using xorriso to generate the ISO and make it hybrid."
xorriso -as mkisofs -o "${OUTFILE}" \
-V "${MEDIALABEL}" \
-J -joliet-long -r \
-hide-rr-moved \
-v -d -N \
-b boot/syslinux/isolinux.bin \
-c boot/syslinux/isolinux.boot \
-boot-load-size ${BOOTLOADSIZE} -boot-info-table -no-emul-boot \
${UEFI_OPTS} \
-isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \
-isohybrid-gpt-basdat \
-preparer "$(echo $LIVEDE |sed 's/BASE//') Live built by ${BUILDER}" \
-publisher "The Slackware Linux Project - http://www.slackware.com/" \
-A "${DISTRO^}-${SL_VERSION} for ${SL_ARCH} ($(echo $LIVEDE |sed 's/BASE//') Live $VERSION)" \
-x ./$(basename ${LIVE_WORK}) \
-x ./${LIVEMAIN}/bootinst \
-x boot/syslinux/testing \
.
fi
# Return to original directory:
cd - 1>/dev/null
cd "${OUTPUT}"
md5sum "$(basename "${OUTFILE}")" \
> "$(basename "${OUTFILE}")".md5
sha256sum "$(basename "${OUTFILE}")" \
> "$(basename "${OUTFILE}")".sha256
cd - 1>/dev/null
echo "-- Live ISO image created:"
echo " - CDROM max size is 737.280.000 bytes (703 MB)"
echo " - DVD max size is 4.706.074.624 bytes (4.38 GB aka 4.7 GiB)"
ls -l "${OUTFILE}"*
} # End of create_iso()
set uefi=-eltorito-alt-boot -no-emul-boot -eltorito-platform efi -b efi.img
-rw-r--r-- 1 root root 1179648 Jan 6 2025 efi.img
guest@porteux:~$ file /mnt/sr0/efi.img
efi.img: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "MSDOS5.0", root entries 224, sectors 2880 (volumes <=32 MB), sectors/FAT 9, sectors/track 18, serial number 0x24ac3aa0, label: "EFISECTOR ", FAT (12 bit), followed by FAT
guest@porteux:~$ 7z l /mnt/sr0/efi.img
7-Zip (z) 26.00 (x64) : Copyright (c) 1999-2026 Igor Pavlov : 2026-02-12
64-bit locale=en_US.UTF-8 Threads:4 OPEN_MAX:1024, ASM
Scanning the drive for archives:
1 file, 1179648 bytes (1152 KiB)
Listing archive: /mnt/sr0/efi.img
--
Path = /mnt/sr0/efi.img
Type = FAT
ERRORS:
Unexpected end of archive
Physical Size = 1474560
File System = FAT12
Cluster Size = 512
Free Space = 1030656
Headers Size = 17920
Modified = 2012-07-25 22:00:30
Label = EFISECTOR
Sector Size = 512
ID = 615266976
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2012-07-25 15:00:30 D.... EFI
2012-07-25 15:00:30 D.... EFI/BOOT
2024-12-16 13:37:40 ....A 425984 425984 EFI/BOOT/BOOTX64.EFI
------------------- ----- ------------ ------------ ------------------------
2024-12-16 13:37:40 425984 425984 1 files, 2 folders
Errors: 1
guest@porteux:~$ strings-BSD EFI/BOOT/BOOTX64.EFI | egrep 'X64.EFI|2024|menu.lst'
/efi/grub/menu.lst
/EFI/BOOT/BOOTX64.EFI
GRUB4DOS for_UEFI 2024-12-16, Mem: %dK/%dM/%ldM, Free_mem_start: 0x%x
/EFI/BOOT/BOOTX64.EFI
/efi/grub/menu.lst
find --set-root /efi/grub/menu.lst
title find /efi/grub/menu.lst
find --set-root /efi/grub/menu.lst
configfile /efi/grub/menu.lst
https://github.com/porteux/porteux/issues/102#issuecomment-4248183741
guest@porteux:~$ ls -l /mnt/sr0
total 1477
drwxr-xr-x 3 root root 2048 Apr 9 08:12 boot/
-r--r--r-- 1 root root 2048 Apr 9 10:16 boot.catalog
drwxr-xr-x 4 root root 2048 Apr 9 08:12 EFI/
-rw-r--r-- 1 root root 1179648 Jan 6 2025 efi.img
-rw-r--r-- 1 root root 322965 Feb 26 2024 grldr
drwxr-xr-x 6 root root 2048 Apr 9 08:12 porteux/
-rw-r--r-- 1 root root 857 Jan 6 2025 ventoy.dat
ventoy.dat - Ventoy Compatible
https://www.ventoy.net/en/doc_compatible_mark.html
https://www.ventoy.net/en/compatible.html
https://github.com/porteux/porteux/issues/102#issuecomment-4230568156
esp.img - slitaz-current-core64.iso
2024-03-07 17:30:27 ..... 190464 190464 EFI/esp.img
Testing archive: esp.img
ERRORS:
Unexpected end of archive
ERROR: Data Error : EFI/boot/linux.cmdline
ERROR: Data Error : EFI/boot/bootx64.efi
ERROR: Data Error : EFI/boot/rootfs.gz
slitaz-current-core64.iso
$ 7z l slitaz-current-core64.iso
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)Scanning the drive for archives:
1 file, 92872704 bytes (89 MiB)Listing archive: slitaz-current-core64.iso
--
Path = slitaz-current-core64.iso
Type = Iso
Physical Size = 92872704
Comment =
System: LINUX
Volume: SliTaz core64
VolumeSet: SliTaz cooking
Publisher: http://www.slitaz.org
Preparer: root
Application: tazlito 537/genisoimage 1.1.11 (Linux)
Copyright: README
Created = 2024-03-07 17:30:28
Modified = 2024-03-07 17:30:28Date Time Attr Size Compressed Name ------------------- ----- ------------ ------------ ------------------------ 2024-03-07 17:30:25 D.... boot 2024-03-07 14:38:43 ..... 5271744 5271744 boot/bzImage64 2024-03-07 17:26:57 D.... boot/grub 2021-10-23 10:33:57 ..... 24842 24842 boot/grub/splash.xpm.gz 2024-01-15 16:12:05 ..... 354512 354512 boot/ipxe.exe 2024-03-07 17:30:27 D.... boot/isolinux 2024-03-07 17:30:28 ..... 2048 2048 boot/isolinux/boot.cat 2024-01-15 12:25:26 ..... 17607 17607 boot/isolinux/c32box.c32 2024-01-15 12:25:26 ..... 857 857 boot/isolinux/help.en 2024-01-15 12:25:26 ..... 875 875 boot/isolinux/help.fr 2024-01-15 12:25:26 ..... 3718 3718 boot/isolinux/i18n.cfg 2024-01-15 12:25:20 ..... 26624 26624 boot/isolinux/isolinux.bin 2024-03-07 17:27:12 ..... 1499 1499 boot/isolinux/isolinux.cfg 2024-01-15 12:25:26 ..... 1446 1446 boot/isolinux/kbd 2024-01-15 12:25:26 ..... 1000 1000 boot/isolinux/opts.en 2024-01-15 12:25:26 ..... 1118 1118 boot/isolinux/opts.fr 2021-10-23 10:33:57 ..... 23795 23795 boot/isolinux/splash.jpg 2024-01-15 12:25:26 ..... 75442 75442 boot/isolinux/vesamenu.c32 2024-01-15 12:25:26 ..... 4042 4042 boot/linld.com 2024-01-15 16:12:51 ..... 55532 55532 boot/memtest.exe 2024-01-15 16:13:00 ..... 57865 57865 boot/memtest64.exe 2024-01-15 16:13:22 ..... 23717 23717 boot/plop.exe 2024-03-07 17:30:24 ..... 86607792 86607792 boot/rootfs.gz 2024-03-07 14:38:43 ..... 5271744 5271744 boot/vmlinuz-5.10.210-slitaz64 2024-03-07 17:30:25 D.... EFI 2024-03-07 17:30:25 D.... EFI/boot 2024-03-07 14:38:43 ..... 5271744 5271744 EFI/boot/bootx64.efi 2024-03-07 17:30:25 ..... 61 61 EFI/boot/linux.cmdline 2024-03-07 17:30:24 ..... 86607792 86607792 EFI/boot/rootfs.gz 2024-03-07 17:30:27 ..... 190464 190464 EFI/esp.img 2024-03-07 17:30:25 ..... 4922 4922 index.html 2024-03-07 17:30:28 ..... 1393 1393 md5sum 2024-03-07 17:30:25 ..... 811 811 README ..... 2048 2048 [BOOT]/1-Boot-NoEmul.img ..... 190464 190464 [BOOT]/2-Boot-NoEmul.img ------------------- ----- ------------ ------------ ------------------------ 2024-03-07 17:30:28 190097518 190097518 30 files, 5 folders$ 7z t esp.img
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)Scanning the drive for archives:
1 file, 190464 bytes (186 KiB)Testing archive: esp.img
ERRORS:
Unexpected end of archive--
Path = esp.img
Type = FAT
ERRORS:
Unexpected end of archive
Physical Size = 92073984
File System = FAT16
Cluster Size = 2048
Free Space = 91885568
Headers Size = 188416
Label = SLITAZ BOOT
Sector Size = 512
ID = 0ERROR: Data Error : EFI/boot/linux.cmdline
ERROR: Data Error : EFI/boot/bootx64.efi
ERROR: Data Error : EFI/boot/rootfs.gzSub items Errors: 3
Archives with Errors: 1
Open Errors: 1
Sub items Errors: 3
https://forum.slitaz.org/topic/uefi-only-laptop-trouble-booting/page/3#post-52161
https://forum.slitaz.org/topic/usage-of-slitaz-40-rolling/page/25#post-52162
mkiso.cmd - WINDOWS CMD
add -V porteux
VS.
create-iso.sh