Custom Manjaro ISO finally works

If you want to edit the Grub command, editing etc/default/grub won’t work, unless I edited the wrong line, that’s in the live-overlay folder.

I extracted the ISO with Engrampa Archive Manager, then edited kernels.cfg, removed quiet and added iommu=soft. Mounting the ISO and copying with cp -a didn’t work, the EFI partition was broken after making the ISO. So if your motherboard is set to UEFI only, it won’t show the flash drive. Can’t mount it either.

iso_app_id="Manjaro Live/Rescue CD" \
mod_date=$(date -u +%Y-%m-%d-%H-%M-%S-00  | sed -e s/-//g) \
    xorriso -as mkisofs \
        --modification-date=${mod_date} \
        --protective-msdos-label \
        -volid "MJRO1800" \
        -appid "${iso_app_id}" \
        -publisher "Nobody" \
        -preparer "Prepared by manjaro-tools/${0##*/}" \
        -r -graft-points -no-pad \
        --sort-weight 0 / \
        --sort-weight 1 /boot \
        --grub2-mbr ./boot/grub/i386-pc/boot_hybrid.img \
        -partition_offset 16 \
        -b boot/grub/i386-pc/eltorito.img \
        -c boot.catalog \
        -no-emul-boot -boot-load-size 4 -boot-info-table --grub2-boot-info \
        -eltorito-alt-boot \
        -append_partition 2 0xef ./efi.img \
        -e --interval:appended_partition_2:all:: \
        -no-emul-boot \
        -iso-level 3 \
        -o ../manjaro-deepin-18.0.0-stable-minimal-x86_64.iso \
./

There’s the command for making the ISO, don’t follow the Arch Linux Wiki’s instructions. I stole that from the Manjaro Git. That’s what manjaro-tools uses to make the ISO.

Uploading the ISO now, so if you want kernel 4.18.20 and iommu=soft, you don’t have to make it yourself.

To do it yourself, make the ISO with buildiso, then modify it by doing the above.

manjaro-deepin-18.0.0-stable-minimal-x86_64.iso