On Thursday, 19 October 2023 00:06:43 BST Neil Bothwick wrote:

> If you like simple, here is a config file I use with systemd-boot
> 
> version 6.1.57-gentoo
> linux   /vmlinuz-6.1.57-gentoo
> options root=/dev/sda3 panic=10 net.ifnames=0 i915.enable_ips=0
> 
> That's it! There is a separate file for each menu entry, but they are
> this simple. There's also a global loader.conf, that runs to a massive 2
> lines here!

Just to expand this in case it helps someone, and because the wiki article on 
systemd-boot is not very helpful:

I like to keep one recent kernel along with the current one, as fallback. I 
also have a small rescue partition on the same disk, and that also has two 
kernels.

The main system has a choice of three boot options: standard, no X and no 
network, and the rescue system the same but without the no-X.

That gives the following structure on this machine:

# ls -1 /boot/v*
/boot/vmlinuz-6.1.46-gentoo
/boot/vmlinuz-6.1.46-gentoo-rescue
/boot/vmlinuz-6.1.57-gentoo
/boot/vmlinuz-6.1.57-gentoo-rescue

# tree -L 3 /boot/loader
/boot/loader
├── entries
│   ├── 06-gentoo-rescue-6.1.46.conf
│   ├── 07-gentoo-rescue-6.1.46.nonet.conf
│   ├── 08-gentoo-rescue-6.1.46.conf
│   ├── 09-gentoo-rescue-6.1.46.nonet.conf
│   ├── 30-gentoo-6.1.57.conf
│   ├── 32-gentoo-6.1.57.nox.conf
│   ├── 34-gentoo-6.1.57.nonet.conf
│   ├── 40-gentoo-6.1.46.conf
│   ├── 42-gentoo-6.1.46.nox.conf
│   └── 44-gentoo-6.1.46.nonet.conf
├── loader.conf
└── random-seed

The random seed was put there by systemd-boot.

I think I have most eventualities covered. (Hah!)

-- 
Regards,
Peter.




Reply via email to