• [gentoo-user] systemd-boot on an openrc system

    From Peter Humphrey@21:1/5 to All on Thu Sep 15 11:10:01 2022
    Hello list,

    I've had no success with that monster grub-2, so I use bootctl from systemd- boot to maintain a boot-time menu of kernels to boot.

    In recent versions of systemd-boot, when I command 'bootctl update' I get this request:

    'Read $KERNEL_INSTALL_LAYOUT from /etc/machine-info. Please move it to the layout= setting of /etc/kernel/install.conf.'

    My openrc boxes have no such install.conf file. Do I need to create one?

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nils Freydank@21:1/5 to All on Wed Sep 28 13:10:01 2022
    Hi Peter,

    long story short: AFAICT it's a deprecated or moved configuration entry inside the file /etc/machine-info and should be safe to just delete, maybe even with the whole file machine-info itself.

    On my machine with openrc and systemd-boot I don't even have /etc/machine-info at all and things work fine together. To me it looks as the variable was just thrown out of the machine-info file and in case you would need it you should put it into /etc/kernel/install.conf.

    I don't know which software uses the string. If you compile your kernel manually or using the gentoo-kernel packages it seems to be not necessary.

    (But as always when taking advice from strangers on the internet: First make a backup, have a live medium for recovery at hand and test it yourself.)

    Kind regards,
    Nils

    -----BEGIN PGP SIGNATURE-----

    iNUEABYKAH0WIQTgmjCviHEzQ7wFgdAPHeqy02rREgUCYzQqal8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RTA5 QTMwQUY4ODcxMzM0M0JDMDU4MUQwMEYxREVBQjJEMzZBRDExMgAKCRAPHeqy02rR Ei9SAQDh8zztOYAsdme5ebM9zD613u5DpWA7wNFY54Rt96i/VwD8CD/Y1auTQvqA xOXs7Vw/oDtVJK7Ps/P3W2CzbrTm4QM=
    =+VNH
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Humphrey@21:1/5 to All on Wed Sep 28 14:30:01 2022
    On Wednesday, 28 September 2022 12:05:19 BST Nils Freydank wrote:
    Hi Peter,

    long story short: AFAICT it's a deprecated or moved configuration entry inside the file /etc/machine-info and should be safe to just delete, maybe even with the whole file machine-info itself.

    On my machine with openrc and systemd-boot I don't even have /etc/machine-info at all and things work fine together. To me it looks as
    the variable was just thrown out of the machine-info file and in case you would need it you should put it into /etc/kernel/install.conf.

    I don't know which software uses the string. If you compile your kernel manually or using the gentoo-kernel packages it seems to be not necessary.

    (But as always when taking advice from strangers on the internet: First make a backup, have a live medium for recovery at hand and test it yourself.)

    Thanks Nils.

    Looking more carefully, I see only one machine has an /etc/machine-info. I've moved it and I no longer get the warning. Simple as that, eh?

    --
    Regards,
    Peter.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nikos Chantziaras@21:1/5 to Peter Humphrey on Thu Sep 29 16:20:01 2022
    On 28/09/2022 15:20, Peter Humphrey wrote:
    Looking more carefully, I see only one machine has an /etc/machine-info.

    I'm on systemd (openrc is not installed at all), and I don't have /etc/machine-info. And /etc/kernel/install.d/ is empty.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)