You are not logged in.

#1 2021-08-22 21:08:37

jim945
Member
Registered: 2014-12-02
Posts: 4

Add loopback.cfg in archiso

Many distributions use loopbask.cfg to automatically generate menus when launched from an iso image.
https://www.supergrubdisk.org/wiki/Loopback.cfg
Is it possible to add it to archiso?
Here are examples of config
https://github.com/jim945/autoiso-multi … opback.cfg
And the config to run it
https://github.com/jim945/autoiso-multiboot

Offline

#2 2021-08-22 21:33:27

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: Add loopback.cfg in archiso

I don’t really get the idea.

You are not forced to burn ArchISO directly to a CD or a thumbdrive. You can store them as files and normally boot with GRUB in their current state. No third party scripts needed for that.

This is how I use mine:

 $ ls boot/grub/iso/
archlinux-2021.04.01-x86_64.iso  archlinux-2021.07.01-x86_64.iso
archlinux-2021.05.01-x86_64.iso  archlinux-2021.08.01-x86_64.iso
archlinux-2021.06.01-x86_64.iso
 $ cat boot/grub/grub.cfg
set imgdevpath="/dev/disk/by-uuid/2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae"

menuentry 'ArchISO 2021-04-01' {
    set isofile='/boot/grub/iso/archlinux-2021.04.01-x86_64.iso'
    loopback loop $isofile
    search --fs-uuid --set=root 2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae
    echo 'Loading Linux...'
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
    echo 'Loading initial ramdisk...'
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

menuentry 'ArchISO 2021-05-01' {
    set isofile='/boot/grub/iso/archlinux-2021.05.01-x86_64.iso'
    loopback loop $isofile
    search --fs-uuid --set=root 2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae
    echo 'Loading Linux...'
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
    echo 'Loading initial ramdisk...'
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

menuentry 'ArchISO 2021-06-01' {
    set isofile='/boot/grub/iso/archlinux-2021.06.01-x86_64.iso'
    loopback loop $isofile
    search --fs-uuid --set=root 2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae
    echo 'Loading Linux...'
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
    echo 'Loading initial ramdisk...'
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

menuentry 'ArchISO 2021-07-01' {
    set isofile='/boot/grub/iso/archlinux-2021.07.01-x86_64.iso'
    loopback loop $isofile
    search --fs-uuid --set=root 2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae
    echo 'Loading Linux...'
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
    echo 'Loading initial ramdisk...'
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

menuentry 'ArchISO 2021-08-01' {
    set isofile='/boot/grub/iso/archlinux-2021.08.01-x86_64.iso'
    loopback loop $isofile
    search --fs-uuid --set=root 2f2ec7ab-1cc0-4f9e-8d6b-4e0ca64592ae
    echo 'Loading Linux...'
    linux (loop)/arch/boot/x86_64/vmlinuz-linux img_dev=$imgdevpath img_loop=$isofile earlymodules=loop
    echo 'Loading initial ramdisk...'
    initrd (loop)/arch/boot/x86_64/initramfs-linux.img
}

Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2021-08-22 21:42:35

jim945
Member
Registered: 2014-12-02
Posts: 4

Re: Add loopback.cfg in archiso

loopback.cfg is available in many ISOs. For example Ubuntu, Mint, Manjaro, etc.
Designed for automatic generating menu without manual editing of configs.
2021-08-23-00-44-47.png

Last edited by jim945 (2021-08-22 21:54:48)

Offline

#4 2021-08-24 02:56:36

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: Add loopback.cfg in archiso

Opening a feature request on the bug tracker for Release Engineering would be the best option to reach people responsible.

Last edited by mpan (2021-08-24 02:57:11)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#5 2021-08-25 07:58:01

jim945
Member
Registered: 2014-12-02
Posts: 4

Re: Add loopback.cfg in archiso

Offline

#6 2021-08-25 12:28:32

mpan
Member
Registered: 2012-08-01
Posts: 1,205
Website

Re: Add loopback.cfg in archiso

The feature request misses any references supporting the claim that “This is a standard that has been adopted by several distributions by now.”


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#7 2021-08-25 14:07:08

jim945
Member
Registered: 2014-12-02
Posts: 4

Re: Add loopback.cfg in archiso

This is currently the only way to automatically configure liveiso running from a file.  It is confirmed by the presence of the file /boot/grub/loopback.cfg in the images of many distributions.

Offline

Board footer

Powered by FluxBB