Now I want to be able to boot the same live system from UEFI too (without removing isolinux). This way I can use the same pendrive with any firmware (BIOS and UEFI). I tried with rufus with no success. I think xorriso should do the trick, but many attempts didn't success. I even created an ESP partition on the pendrive and there I copied the content of the /boot/grub directory (and changed grub.cfg accordingly). No way to make it work. Can someone help me? Thanks.
Shortly, the procedure:
- Code: Select all
debootstrap --arch=amd64 buster /media/Live/livework/chroot
chroot /media/Live/livework/chroot
... install Debian+LXDE+customizations
... copy kernel & initrd on /media/Live/livework/binary/live/
cd /media/Live/livework/
mksquashfs chroot binary/live/filesystem.squashfs -comp xz -e boot
... configure isolinux
Finally:
- Code: Select all
xorriso -as mkisofs -r -J -joliet-long -l \
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -partition_offset 16 \
-A "my_Debian_Live" -b isolinux/isolinux.bin -c \
isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -o my_Debian_Live.iso \
binary