You are not logged in.

#1 2015-10-10 12:09:43

folatt
Member
Registered: 2015-08-01
Posts: 96

Adding a line late in the boot process+UEFI efibootmgr vs systemd-boot

According to http://wiki.xen.org/wiki/Xen_Best_Practices it's a good idea to add "xm sched-credit -d Domain-0 -w 512" into rc.local or another script that is executed late in the boot process.

As I understand rc is deprecated with systemd.
Should this line then be somehow be part of xen-init-dom0.service?


I have asked on IRC and what I got as an answer was that I should use efibootmgr to solve this.
Now I haven't found anything that could add this line, but what does mystify me is that efibootmgr is about loading efi files.

But when I configure one of them to load an efi file, I feel the efi simply gets ignored and get thrown into the systemd-boot menu where I can **really** decide which efi I want to load.

It makes me wonder why 'load this efi file with efibootmgr' in the first place if they all end up at systemd-boot menu?

Offline

#2 2015-10-10 12:45:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,354

Re: Adding a line late in the boot process+UEFI efibootmgr vs systemd-boot

No clue about efibootmanager, but there is another solution :

put the command(s) in a script
write a systemd .service to start it and enable the service .

"Systemd FAQ" page in archwiki has an example how to to achieve this.

Note : it's possible the same can be achieved by adding the commands to an existing service, but that may cause problems when upstream changes that .service.
Using  a separate service is cleaner imo.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-10-17 14:40:38

Blasphemist
Member
From: Colorado
Registered: 2013-01-17
Posts: 160

Re: Adding a line late in the boot process+UEFI efibootmgr vs systemd-boot

It looks to me like what you are trying to accomplish is passing kernel parameters when loading the kernel. Efibootmgr can do that but only for when the kernel is loaded directly, by UEFI. I don't use a boot loader or manager so I do pass kernel params to UEFI using efibootmgr for use when the kernel is loaded. If you use a boot loader or manager, you'd still pass the parameter from that boot loader or manager. In this case it seems you'd need to translate this to passing it from systemd-boot. Would you like help with that?


Simple and Open

Offline

Board footer

Powered by FluxBB