You are not logged in.

#1 2024-03-17 11:29:00

fivoyf
Member
Registered: 2024-03-17
Posts: 5

systemd | adding permanently specific command

hey guys,

i installed archlinux with the archinstaller and selected the systemd bootloader with unified kernel.
Now i want to add the following command (as far as i know in mkinitcpio early init environment) but i couldn't manage it:
amdgpu.ppfeaturemask=0xffffffff
it seems i cant really find the file / hook / whatever where i extend the line. In the past i mostly used grub, but this time i wanted something else big_smile

hope you can help me.
Thank you so much in advance.

Offline

#2 2024-03-17 13:23:55

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: systemd | adding permanently specific command

https://wiki.archlinux.org/title/Kernel … stemd-boot

If you had installed manually you would already have known this.

EDIT: actually that's probably not right for a UKI. I have no idea how archinstall sets that up though. If you share the install log it will probably show the details. Hopefully.

Last edited by Head_on_a_Stick (2024-03-17 13:25:36)

Offline

#3 2024-03-17 18:34:14

fivoyf
Member
Registered: 2024-03-17
Posts: 5

Re: systemd | adding permanently specific command

Head_on_a_Stick wrote:

EDIT: actually that's probably not right for a UKI. I have no idea how archinstall sets that up though. If you share the install log it will probably show the details. Hopefully.

can't find any archinstall logs big_smile but yea exactly this is my "problem" ^^

Offline

#4 2024-03-17 19:19:07

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: systemd | adding permanently specific command

Did you check /var/log/archinstall?

Offline

#5 2024-03-17 20:40:01

fivoyf
Member
Registered: 2024-03-17
Posts: 5

Re: systemd | adding permanently specific command

yep, found some logs but nothing from archinstall.

Offline

#6 2024-03-17 21:54:12

seth
Member
Registered: 2012-09-03
Posts: 50,885

Re: systemd | adding permanently specific command

https://man.archlinux.org/man/loader.conf.5.en#OPTIONS

The configuration options supported by ESP/loader/entries/*.conf and XBOOTLDR/loader/entries/*.conf files are defined as part of the Boot Loader Specification[1].

https://uapi-group.org/specifications/s … ification/ - scroll a bit up if you're unclear what the .conf files name should be.

but yea exactly this is my "problem" ^^

So you've seen the error of your ways…

Offline

#7 2024-03-18 15:35:26

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: systemd | adding permanently specific command

fivoyf wrote:

yep, found some logs but nothing from archinstall.

That makes no sense hmm

Please post the output of

cat /var/log/archinstall/*

Do you have a file at /etc/kernel/cmdline? That might be the key here.

Offline

#8 2024-03-18 17:43:14

Fuxino
Member
From: Slovakia
Registered: 2014-09-26
Posts: 177

Re: systemd | adding permanently specific command

Assuming the UKI is generated by mkinitcpio, you can either use *.conf files in /etc/cmdline.d/, or use /etc/kernel/cmdline, see: https://wiki.archlinux.org/title/Unifie … mmand_line

Offline

#9 2024-03-19 17:47:09

fivoyf
Member
Registered: 2024-03-17
Posts: 5

Re: systemd | adding permanently specific command

Head_on_a_Stick wrote:

Do you have a file at /etc/kernel/cmdline? That might be the key here.

got it. hopefully it works ^^

Fuxino wrote:

Assuming the UKI is generated by mkinitcpio, you can either use *.conf files in /etc/cmdline.d/, or use /etc/kernel/cmdline, see: https://wiki.archlinux.org/title/Unifie … mmand_line

the cmdline.d conf file didnt worked out, checked that a few days ago but the kernel thing maybe works. i will see big_smile

Offline

#10 2024-03-22 18:38:49

fivoyf
Member
Registered: 2024-03-17
Posts: 5

Re: systemd | adding permanently specific command

Edit: with the modification in /etc/kernel/cmdline it works like a charm. Thank you so much.

This should be the main file, if anyone else use the archinstaller with UKI.

Offline

Board footer

Powered by FluxBB