laurent85v / archuseriso

A set of bash script programs to create bootable Arch Linux images and to create bootable USB flash drives with a desktop environment.
GNU General Public License v3.0
223 stars 30 forks source link

Question: How do I change the default boot option in UEFI mode #32

Closed Archangel-Live closed 3 years ago

Archangel-Live commented 3 years ago

Excellent project. Very useful!!!

I have a question: The default boot option is "persistance". I found out myself how to change this in BIOS mode.

But I don't understand how to change it in UEFI mode.

I'd like to make booting "live to ram" the default. Please point out which files I have to edit to achieve this.

I'm using the i3 profile.

laurent85v commented 3 years ago

Thanks for your support.

ESP partition, edit file /loader/loader.conf and change default to: default archiso_3_ram-x86_64-linux.conf

Archangel-Live commented 3 years ago

Did not succeed yet. I edited archuseriso/profiles/i3/efiboot/loader/loader.conf

but the boot menu which opens after the UEFI splash screen is the same, the first entry being "persistence", highlighted and still booting :-(

laurent85v commented 3 years ago

Both work for me, either editing profile, either editing usb drive's config file.

Archangel-Live commented 3 years ago

I guess I'm too dumb for this. I don't even understand how this boot menu is generated. It seems to be a combination of the entries of two directories: i3/efiboot/loader/entries/ i3/aui/liveusb/loader/entries/

There are two corresponding loader.conf files with different default entries:

i3/efiboot/loader/loader.conf ---> default archiso-x86_64-linux.conf i3/aui/liveusb/loader/loader.conf ---> default archiso-aui-0-x86_64-linux.conf

I don't understand how this works. Anyway, thanks for your help! And again: Huge thanks for the great Archuseriso project. I'm very happy to have this.

laurent85v commented 3 years ago

Have you tried this https://github.com/laurent85v/archuseriso/issues/32#issuecomment-863575080 ?

Regarding the profile changes, you need to edit both files i3/efiboot/loader/loader.conf and i3/aui/liveusb/loader/loader.conf

Change the default to: default archiso_3_ram-x86_64-linux.conf

i3/efiboot/loader/loader.conf is the configuration file for the iso image i3/aui/liveusb/loader/loader.conf is the configuration file for the live usb created by aui-mkusb

Archangel-Live commented 3 years ago

That's it, it works :100: I edited both files and everything's fine. Thanks again, Laurent :+1: