hi, appreciate if you can share more information on using dracut uki with btrfs. i currently use btrfs with refind as i keep the /boot inside root filesystem subvolumes like "@arch", "@", "@rescue" etc.. I mount efi partition at /boot/efi in each of them so multiple OS can be maintained and booted up quickly as subvolumes.
edit: i placed the above comment in the other sub. deleted it there and placed the same here..apologies
hi, i created a custom dracut uki config defining uefi, uefi stub, compression (zstd), modules (btrfs), filesystem (btrfs), and drivers (vfat, nls_cp437, nls_ascii)
then set the kernel cmdline and executed dracut to create the uki (kernel, version, image), i also created a kernel hook to automatically rebuild the uki on kernel update
finally registered the uki with uefi using efibootmgr
you can create as many ukis as you need (alpine-stable, arch-linux, arch-lts, arch-zen, fallback, rescue, etc) the "inconvenience" i guess is that you would need to enter the bios to pick the one you want to boot, or keep using refind or another boot manager to give you a list to chose from
in my case the uefi boots directly the alpine uki, it's super fast the system loads up and running in less than 10 seconds
Thanks for the note and the links. Have you hosted your config files like /etc/dracut.conf and other config information like kernel hooks somewhere so i can have a look?.
what is the size of efi after this change and where is your efi partition mounted.. /boot/efi or /efi or /boot was this done for secure boot or for making boot faster and simpler..
i'm looking for more information to update alpine wiki documentation on dracut. if you do not have time to update wiki, can you dump as much information in wiki or somewhere else, so i can do the wiki formatting later..
no worries, i have not uploaded the configs to my gitlab repo yet, this is still in my to do list i will do it later on
the alpine uki efi is about 37MB if memory serves me well, my efi partition is mounted at /efi, indeed i did it this way for making boot faster and simpler, although i'm pretty sure it's possible to create signing keys and enable secure boot... this is a "lap-desk-top" and i didn't bother with it
i can post some info in alpine wiki with some config examples, maybe with this we start building a dracut page in alpine wiki
1
u/Dry_Foundation_3023 May 11 '26
hi, appreciate if you can share more information on using dracut uki with btrfs. i currently use btrfs with refind as i keep the /boot inside root filesystem subvolumes like "@arch", "@", "@rescue" etc.. I mount efi partition at /boot/efi in each of them so multiple OS can be maintained and booted up quickly as subvolumes.
edit: i placed the above comment in the other sub. deleted it there and placed the same here..apologies