Better handle systemd-boot and installkernel changes in HB
Immolo <[email protected]> Thu, 6 Nov 2025 00:11:18 +0000
| Newsgroups | gmane.linux.gentoo.documentation |
|---|---|
| Message-ID | <CAHfWF5mKtsy8dwOitDGUOmFciCqDROw-zcvepoDsNd3o7Wxc7w@mail.gmail.com> |
--0000000000006a915c0642e1eb87
Content-Type: text/plain; charset="UTF-8"
Hi all,
Trying to keep this brief as possible, https://bugs.gentoo.org/965211
highlights an issue with a change in systemd-boot behaviour.
This is causing new users no end of issues and clogging up support time.
The issue is systemd-boot takes it's kernel cmdline
options from the host system, which in this case is the installcd,
resulting in a system that will not boot.
While I think we can solve this more elegantly in the future, we need
something now to help users and people supporting them.
Part 1:
Add the following text and steps to
https://wiki.gentoo.org/wiki/Handbook:Parts/Installation/Kernel#systemd-boot
By default systemd-boot will take the kernel cmdline from the system,
which is less than ideal for an install from live media.
To workaround this the following changes must be made:
touch /etc/kernel/cmdline
touch /etc/kernel/install.d/05-check-chroot.install
This gives systemd-boot a blank kernel cmdliine to use rather than using
the installcd's cmdine and gets around the chroot check if the user
decides to use ~ARCH.
A copy/paste can be found at
https://wiki.gentoo.org/wiki/User:Immolo/Sandbox/Kernel-systemd-boot
Part 2:
Clean up the changes made so the blank /etc/kernel/cmdline is removed and
make Nowa's previous attempt easy to follow at
https://wiki.gentoo.org/wiki/Handbook:AMD64/Blocks/Bootloader
This can be both viewed and copied from
https://wiki.gentoo.org/wiki/User:Immolo/Sandbox/Bootlloader-systemd-boot
I will continue to work with the projects involved and update as needed,
but for now this is the fix Gentoo needs.
Kind regards,
immol
--0000000000006a915c0642e1eb87
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi all,</div><div><br></div><div>Trying to keep this =
brief=C2=A0as possible,=C2=A0<a href=3D"https://bugs.gentoo.org/965211">htt=
ps://bugs.gentoo.org/965211</a> highlights an issue with a change in system=
d-boot behaviour.</div><div>This is causing new users no end of issues and =
clogging=C2=A0up support time. The issue is systemd-boot takes it's ker=
nel cmdline=C2=A0</div><div>options from the host system, which=C2=A0in thi=
s case is the installcd, resulting in=C2=A0a system that will not boot.</di=
v><div><br></div><div>While I think we can solve this more elegantly in=C2=
=A0the future, we need something now to help users and people supporting th=
em.</div><div><br></div><div>Part 1:</div><div><br></div><div>Add the follo=
wing=C2=A0text and steps to=C2=A0<a href=3D"https://wiki.gentoo.org/wiki/Ha=
ndbook:Parts/Installation/Kernel#systemd-boot">https://wiki.gentoo.org/wiki=
/Handbook:Parts/Installation/Kernel#systemd-boot</a></div><div><br>=C2=A0 B=
y default systemd-boot will take the kernel cmdline from the system, which =
is less than ideal for an install from live media.<br>=C2=A0 To workaround =
this the following changes must be made:<br><br>=C2=A0 =C2=A0 touch /etc/ke=
rnel/cmdline<br>=C2=A0 =C2=A0 touch /etc/kernel/install.d/05-check-chroot.i=
nstall</div><div><br></div><div>This gives systemd-boot a blank kernel cmdl=
iine=C2=A0to use rather than using the installcd's cmdine=C2=A0and gets=
around the chroot check if the user</div><div>decides to use ~ARCH.</div><=
div><br></div><div>A copy/paste can be found at=C2=A0<a href=3D"https://wik=
i.gentoo.org/wiki/User:Immolo/Sandbox/Kernel-systemd-boot">https://wiki.gen=
too.org/wiki/User:Immolo/Sandbox/Kernel-systemd-boot</a></div><div><br></di=
v><div>Part 2:</div><div><br></div><div>Clean up the changes made so the bl=
ank /etc/kernel/cmdline is removed and make Nowa's previous=C2=A0attemp=
t easy to follow at=C2=A0</div><div><a href=3D"https://wiki.gentoo.org/wiki=
/Handbook:AMD64/Blocks/Bootloader">https://wiki.gentoo.org/wiki/Handbook:AM=
D64/Blocks/Bootloader</a></div><div><br></div><div>This can be both viewed =
and copied from=C2=A0<a href=3D"https://wiki.gentoo.org/wiki/User:Immolo/Sa=
ndbox/Bootlloader-systemd-boot">https://wiki.gentoo.org/wiki/User:Immolo/Sa=
ndbox/Bootlloader-systemd-boot</a></div><div><br></div><div>I will continue=
to work with the projects involved and update as needed, but for now this =
is the fix Gentoo needs.</div><div><br></div><div>Kind regards,</div><div><=
br></div><div>immol=C2=A0=C2=A0</div><div><br></div></div>
--0000000000006a915c0642e1eb87--