Page 1 of 1

How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sat Sep 07, 2024 8:38 pm
by oops
Hello,
How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Probably with: BOOTx64.efi into the ESP partition in Refind, and a stanzas config into refind.conf ?

Code: Select all

$ tree
.
├── antiX
│   ├── initrd.gz
│   ├── initrd.gz.md5
│   ├── linuxfs
│   ├── linuxfs.info
│   ├── linuxfs.md5
│   ├── vmlinuz
│   └── vmlinuz.md5
├── boot
│   ├── grub
│   │   ├── config
│   │   │   ├── bootmenu.cfg
..
│   │   │   └── version.cfg
│   │   ├── efi.img
│   │   ├── fonts
│   │   │   ├── 7x13.pf2
│   │   │   ├── dejavu-sans-14.pf2
│   │   │   ├── dejavu-sans-16.pf2
│   │   │   ├── font.pf2
│   │   │   └── unicode.pf2
│   │   ├── grub.cfg
│   │   ├── grubenv.cfg
│   │   ├── i386-efi
│   │   │   ├── acpi.mod
...
│   │   │   ├── zfs.mod
│   │   │   └── zstd.mod
│   │   ├── i386-pc
│   │   │   ├── 915resolution.mod
│   │   │   ├── acpi.mod
...
│   │   │   ├── zfs.mod
│   │   │   └── zstd.mod
│   │   ├── loopback.cfg
│   │   ├── theme
│   │   │   ├── background.jpg
...
│   │   │   └── uefi.txt
│   │   ├── unicode.pf2
│   │   └── x86_64-efi
│   │       ├── acpi.mod
...
│   │       └── zstd.mod
│   ├── isolinux
│   │   ├── 0_applis_installees_script_et diff_MX21_juil2021.tar.xz
│   │   ├── 0_applis_installees_script_et diff_MX21.txt
│   │   ├── antiX64-vm_snapshot-config
│   │   │   ├── iso-snapshot.conf
│   │   │   ├── iso-snapshot.conf_save001
│   │   │   └── iso-snapshot-exclude.list_save001
│   │   ├── chain.c32
│   │   ├── custom.cfg_PC-tof_28mars2022
...
│   │   ├── Table_of_antiX_Boot_Parameters_FRUGAL-INSTALL.txt.txt
│   │   └── version
│   ├── memtest
│   ├── syslinux
│   │   ├── chain.c32
│   │   ├── gfxboot.c32
│   │   ├── gfx-cpio
│   │   ├── gfxsave.cfg
│   │   ├── ldlinux.c32
│   │   ├── libcom32.c32
│   │   ├── libmenu.c32
│   │   ├── libutil.c32
│   │   ├── menu.c32
│   │   ├── README
│   │   ├── readme.msg
│   │   ├── syslinux.bin
│   │   ├── syslinux.cfg
│   │   └── version
│   └── uefi-mt
│       ├── mtest-32.efi
│       └── mtest-64.efi
├── cdrom.ico
├── EFI
│   └── BOOT
│       ├── BOOTia32.efi
│       ├── BOOTx64.efi
│       ├── grubx64.efi
│       └── mmx64.efi
└── MX23-AHS_X64_k6.1.x-SecureBoot-20240904_1316
    └── package_list

17 directories, 1029 files

Code: Select all

$ dpkg -s refind | grep Version
Version: 0.14.2-1

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?  [Solved]

Posted: Sat Sep 07, 2024 11:26 pm
by BitJam
It looks like you did a manual frugal install (which is fine). When the live system does a frugal install the directory it creates that contains all the files includes the word "Frugal" and the kernel version. This helps prevent collisions with older frugal installs that might still be lying around.

Anyway, you need to tell the bootloader (refind) where the kernel and initrd are. In addition, you need to provide boot options that let our initrd find the linuxfs file. Since /antiX/linuxfs is the default location, you just need to tell us which partition to look on. This is usually done using the partition label (blab=) or the partition uuid (buuid=). It could well boot without the partition being specified if you use the "from=hd" option which tells us to look for /antiX/linuxfs only on hard drive partitions. By default, the live system avoids looking for the linuxfs file on hard drives. If you use "from=hd" without "blab=" or "buuid=" it will search all hard drive partitions for /antiX/linuxfs and use the first one it finds.

Borrowing from the refind.cfg demo file, I would try an entry like this:

Code: Select all

menuentry MX23 {
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader antiX/vmlinuz
    initrd antix/initrd.gz
    options "buuid=5f96cafa-e0a7-4057-b18f-fa709db5b837"
}

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sun Sep 08, 2024 3:14 am
by Eadwine Rose
And next time, don't forget your QSI, please.

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sun Sep 08, 2024 7:41 am
by oops
BitJam wrote: Sat Sep 07, 2024 11:26 pm It looks like you did a manual frugal install (which is fine). When the live system does a frugal install the directory it creates that contains all the files includes the word "Frugal" and the kernel version. This helps prevent collisions with older frugal installs that might still be lying around.

Anyway, you need to tell the bootloader (refind) where the kernel and initrd are. In addition, you need to provide boot options that let our initrd find the linuxfs file. Since /antiX/linuxfs is the default location, you just need to tell us which partition to look on. This is usually done using the partition label (blab=) or the partition uuid (buuid=). It could well boot without the partition being specified if you use the "from=hd" option which tells us to look for /antiX/linuxfs only on hard drive partitions. By default, the live system avoids looking for the linuxfs file on hard drives. If you use "from=hd" without "blab=" or "buuid=" it will search all hard drive partitions for /antiX/linuxfs and use the first one it finds.

Borrowing from the refind.cfg demo file, I would try an entry like this:

Code: Select all

menuentry MX23 {
    volume 904404F8-B481-440C-A1E3-11A5A954E601
    loader antiX/vmlinuz
    initrd antix/initrd.gz
    options "buuid=5f96cafa-e0a7-4057-b18f-fa709db5b837"
}

Thanks, I will try this kind ok way . (yes I did a (some) manual frugal install, already work with Grub)

FI: @Eadwine Rose ... QSI in this case is not needed, because it is before the MX boot.

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sun Sep 08, 2024 11:20 am
by oops
BitJam wrote: Sat Sep 07, 2024 11:26 pm....
Borrowing from the refind.cfg demo file, I would try ...
Ok, that worked like this config. with the custom icon. Thanks BitJam.

Code: Select all

menuentry MX23-amd64-frugal-STATIC {
	icon EFI/BOOT/tof-snowy/os-mx-linux.png
	# su blkid for GUID and UUID
    volume b36f5a67-xxxxxxxxxx-89f5aa4b52f2
    loader /frugal/MX23-amd64/antiX/vmlinuz
    initrd /frugal/MX23-amd64/antiX/initrd.gz
    #options "buuid=fbbc69ed-c609-4467-8cc8-b7d1404ca2ef"
    options "quiet bdev=sda3 bdir=/frugal/MX23-amd64/antiX kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris hostname=TofMX23 from=hd persist_static"
   
}


menuentry MX23-amd64-frugal-DYNAMIC-persist-root-home {
	icon EFI/BOOT/tof-snowy/os-mx-linux.png
	# su blkid for GUID and UUID
    volume b36f5a67-xxxxxxxxxx-89f5aa4b52f2
    # Grub menuentry "---> POUR MAJ MX23amd64 Frugal - dynamic persist=root!,home! snapshot-2024-on-sda3"
    loader /frugal/MX23-amd64/antiX/vmlinuz 
    initrd /frugal/MX23-amd64/antiX/initrd.gz
    #options "buuid=fbbc69ed-c609-4467-8cc8-b7d1404ca2ef"
    options "quiet bdev=sda3 bdir=/frugal/MX23-amd64/antiX kbd=fr kbvar=oss kbopt=caps:none lang=fr_FR tz=Europe/Paris hostname=TofMX23 from=hd persist=root!,home!"
}

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sun Sep 08, 2024 11:29 am
by oops
My antiX icon for Refind:

Re: How to boot a MX23 frugal install (into an ext4 partition/dir/...) with refind UEFI ?

Posted: Sun Sep 08, 2024 2:46 pm
by BitJam
:thumbup: :thumbup: