Eliloconfig

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Eliloconfig

Post by knome »

After about a month of trial and erroring and kicking cats have finally got my head round EFI (Elephant's Foot Initiative?)

I have a Salix minimal installation and a Salix full installation on a hard drive but when I run eliloconfig it defaults to creating a "Salix" folder and files in the ESP (Efi System Partition) which overwrites any existing folder. I suppose I could put two entries in the elilo.conf file but I'd prefer to keep them separate as they are then both listed in my motherboard's UEFI boot menu.

Are there any options you can pass to eliloconfig to create a user named folder? At the moment I'm just editing the eliloconfig script and replacing all instances of "Salix" with "Salix_X,Y,etc." which works.
Image
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Eliloconfig

Post by laprjns »

knome wrote:After about a month of trial and erroring and kicking cats have finally got my head round EFI (Elephant's Foot Initiative?)
I bet if you spend another month or two with it you will come around to liking it and recognize its advantages over legacy BIOS. \
knome wrote:I have a Salix minimal installation and a Salix full installation on a hard drive but when I run eliloconfig it defaults to creating a "Salix" folder and files in the ESP (Efi System Partition) which overwrites any existing folder.
Yes this is a know issue and is on the list to address at the next release. Installing any of the versions of Salix side by side will results in overwriting the exiting /EFI/Salix folder.
knome wrote:Are there any options you can pass to eliloconfig to create a user named folder?
None that I am aware of.
knome wrote:At the moment I'm just editing the eliloconfig script and replacing all instances of "Salix" with "Salix_X,Y,etc." which works.
I guess that as good of a way of doing it for now. After I experienced the overwrite issue I started to rename the the directory such as Salix_xfce, then ran efibootmgr to register the installation with the efi boot manager. My /boot/efi/EFI directory looks like this: directories and renamed them Salix_xfce, Salix_mate, and Salix_ob.

Code: Select all

rich[efi]$ tree /boot/efi/
/boot/efi/
|-- EFI
|   |-- Boot
|   |   `-- Shellx64.efi
|   |-- Microsoft
|   |   `-- Boot
|   |       |-- BCD
|   |       |-- BCD.Backup.0001
|   |       |-- BCD.LOG
|   |       |-- bootmgfw.efi
|   |       `-- bootx64.efi
|   |-- Salix_mate
|   |   |-- elilo.conf
|   |   |-- elilo.efi
|   |   |-- elilo.png
|   |   `-- vmlinuz
|   |-- Salix_ob
|   |   |-- elilo.conf
|   |   |-- elilo.efi
|   |   |-- elilo.png
|   |   `-- vmlinuz
|   |-- Salix_xfce
|   |   |-- elilo.conf
|   |   |-- elilo.efi
|   |   |-- elilo.png
|   |   `-- vmlinuz
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: Eliloconfig

Post by knome »

Thanks @ laprjns for the explanation.

I do like EFI and am enjoying the journey. I guess it's one of those things that I'll set up and forget about for a couple of years. When I come to tweak it again it'll all be automated and GUI'ed like a comfy slipper.

I'm using efibootmgr but am not up to speed on the commands for registering an entry. I was letting eliloconfig do the dirty work for me.

What's that Microsoft thingy in your EFI directory? :D
Image
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Eliloconfig

Post by djemos »

knome wrote: Are there any options you can pass to eliloconfig to create a user named folder? At the moment I'm just editing the eliloconfig script and replacing all instances of "Salix" with "Salix_X,Y,etc." which works.
An idea is to replace all instances of "Salix" with $3 and pass as third argument the name of folder you like to create.
Since you run eliloconfig from a running system $1 it will be / and the $2 will be the root_device /dev/sda1 and $3 can be Salix_xfce for example.

e.g. sudo eliloconfig / /dev/sda1 Salix_xfce
also can run the script like this
sudo eliloconfig "" "" Salix_xfce
In this case script will put / /dev/sda1 by its own.
I cannot test it because i don't have an uefi laptop.
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: Eliloconfig

Post by knome »

djemos wrote: e.g. sudo eliloconfig / /dev/sda1 Salix_xfce
Thanks, but that doesn't seem to work. The "/dev/sda1" gets declared as the root partition of the operating system in elilo.conf. In an EFI system /dev/sda1 is usually the VFAT EFI System Partition.
Image
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: Eliloconfig

Post by knome »

djemos wrote:
knome wrote: Are there any options you can pass to eliloconfig to create a user named folder? At the moment I'm just editing the eliloconfig script and replacing all instances of "Salix" with "Salix_X,Y,etc." which works.
An idea is to replace all instances of "Salix" with $3 and pass as third argument the name of folder you like to create.
Since you run eliloconfig from a running system $1 it will be / and the $2 will be the root_device /dev/sda1 and $3 can be Salix_xfce for example.

e.g. sudo eliloconfig / /dev/sda1 Salix_xfce
also can run the script like this
sudo eliloconfig "" "" Salix_xfce
In this case script will put / /dev/sda1 by its own.
I cannot test it because i don't have an uefi laptop.
Please ignore my previous post. Your instructions do work. Pass the OS's root partition as $2 works and the "" "" doodah works.
I know very little about Bash scripting and had to do a bit of research on passing arguments to Bash scripts.
Now I have to fire up efibootmgr and remove the spurious Salix_Test entry! :D
Image
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Eliloconfig

Post by laprjns »

laprjns wrote: knome wrote:Are there any options you can pass to eliloconfig to create a user named folder?

None that I am aware of.
This is no longer true. ;)
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
Post Reply