antiX26 grub issues

I have a hard install of antiX-26-rc1_x64-full.iso.
It boots very slowly.
It needs the kernel cmdline parameter intel_iommu=off
I edit /etc/default grub as follows

# If you change this file or any /etc/default/grub.d/*.cfg file,
# run 'update-grub' afterwards to update /boot/grub/grub.cfg.
# For full documentation of the options in these files, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`( . /etc/os-release && echo ${NAME} )`
GRUB_CMDLINE_LINUX_DEFAULT="quiet selinux=0"
GRUB_CMLINE_LINUX="intel_iommu=off"
....

Then I do update-grub in antiX

root@trinity:/boot/grub# update-grub
Generating grub configuration file ...
Found background: /usr/share/wallpaper/grub/back.png
Found linux image: /boot/vmlinuz-6.6.119-antix.1-amd64-smp
Found initrd image: /boot/initrd.img-6.6.119-antix.1-amd64-smp
Found linux image: /boot/vmlinuz-5.10.240-antix.1-amd64-smp
Found initrd image: /boot/initrd.img-5.10.240-antix.1-amd64-smp
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
qFound Void Linux on /dev/sda1
Found MX 25.1 Infinity (25.1) on /dev/sdb13
Found MX 23.6 Libretto (23.6) on /dev/sdb3
Found Void Linux on /dev/sdb5
Found Devuan GNU/Linux 5 (daedalus) on /dev/sdb7
Found Artix Linux (rolling) on /dev/sdc6
Adding boot menu entry for UEFI Firmware Settings ...
done

Then I check /boot/grub/grub.cfg in antiX

menuentry 'antiX-26 Stephen Kapos, 6.6.119-antix.1-amd64-smp' --class antix_26 --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.6.119-antix.1-amd64-smp-advanced-937413ff-d124-49e2-ae13-857ea12a668d' {
        savedefault
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd2,gpt5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt5 --hint-efi=hd2,gpt5 --hint-baremetal=ahci2,gpt5  937413ff-d124-49e2-ae13-857ea12a668d
        else
          search --no-floppy --fs-uuid --set=root 937413ff-d124-49e2-ae13-857ea12a668d
        fi
        echo    'Loading Linux 6.6.119-antix.1-amd64-smp ...'
        linux   /boot/vmlinuz-6.6.119-antix.1-amd64-smp root=UUID=937413ff-d124-49e2-ae13-857ea12a668d ro  quiet selinux=0
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-6.6.119-antix.1-amd64-smp
}

There is the menuentry for the antiXdinit default
It does not contain the option intel_iommu=off
Neither do any of the other antiX entries.

I check the date on the grub.cfg file

root@trinity:/boot/grub# ls -l grub.cfg
-rw------- 1 root root 78582 Mar  9 21:19 grub.cfg

That is 5 minutes ago … ie the grub.cfg file was written by update-grub, but it did not include the intel_iommu=off parameter.

I suspect that the grub mods to incorporate init diversity may have interfered with the incorporation of user cmdline options.

Maybe @ProwlerGr can explain or correct me?

2 Likes

@nevj I have just tested this & can’t replicate the problem (intel_iommu=off gets generated properly on my grub entries)

2 Likes

That is because you did not replicate my spelling mistake

GRUB_CMLINE_LINUX="intel_iommu=off"

It would be better with CMDLINE

How embarassing.
Sorry to bother you.
Thanks for quick reply … I guess this is the sort of thing you are fishing for.
I am giving it a good workout.

“It is the true nature of mankind to learn from mistakes, not from example”
Fred Hoyle

5 Likes