❓ #systemdBoot question: What is the simple/recommended way to get #systemd boot to select the latest kernel by default? It always has with the latest LTS kernel preselected and it's driving me nuts.
@phillo I'd like to keep the LTS kernel. The current behaviour is the #EndeavourOS default but I don't understand why it the exactly is the reverse order of the #GRUB defaults. 😅
I just want that behaviour in #systemdboot.
❓ #systemdBoot question: What is the simple/recommended way to get #systemd boot to select the latest kernel by default? It always has with the latest LTS kernel preselected and it's driving me nuts.
Во времена #EFI & #UEFI этот самый #GRUB уже и не нужен.
Во-первых, полно и других разнообразных UEFI boot manager'ов.
Во-вторых, не особо то они и нужны вообще как класс. Компьютер можно загружать и напрямую через EFI-stub ядра ОС, образы которых давно собираются как EFI-приложения (раз и два).
Т.е. надо идти в настройки UEFI материнской платы и смотреть загрузочные записи, хранящиеся в #NVRAM — дописывать туда все те параметры\аргументы, которые UEFI при старте компа будет подставлять в качестве аргументов командной строки. Так же как и GRUB или другой boot manager грузящий vmlinuz-файл.
Цивилизованный старт
Использовать то, что было известно как #gummiboot, а теперь стало называться #systemd-boot. Там вполне удобные текстовые файлы в /boot/loader/entries/... через которые можно передать нужные значения и аргументы в переменные. Например такие как используются для #LUKS разделов:
options rd.luks.options=password-echo=no
options rd.luks.data=UUID=/dev/disk/by-id/nvme-VENDOR-partN
options rd.luks.name=UUID=my-enc-swap
options resume=/dev/mapper/my-enc-swap
options rd.luks.data=UUID2=/dev/disk/by-id/nvme-VENDOR-partY
options rd.luks.name=UUID2=my-enc-root
options root=/dev/mapper/my-enc-rootНе обязательно задавать таким образом по одной опции на строке, можно устраивать свалку пихая всё в одну большую строку./boot/loader/entries/... файлах или через загрузочные записи UEFI внутри #NVRAM/etc/crypttab.initramfs перед генерацией\созданием #initramfs образа. The Neigbour's Kid #gentoo #linux Installation Adventure went well.
He went for a fully manul installation from the latest Gentoo kde live ISO.
I only had to help with the boot loader.
BIOS vs EFI as explained on the wiki was a bit confusing for him.
I told him to just copy the instructions over to a textfile and we went through it togeter.
Told him to just strip out everthing that's not about his specific setup and after that he easily spotted the step he missed the first time through.
He went for #systemd , #systemdboot , #btrfs and #kde
Hardware Specs:
CPU: AMD Ryzen 7 8700F*
Mainboard: Asrock Phantom Gaming X870 Riptide WiFi
RAM: Mushkin Redline Lumina 2x32GB UDIMM, DDR5-6400, CL30-37-37-96
GPU: XFX Swift Radeon RX 9070 XT
SSD: Samsung 990 PRO 4TB
PSU: FSP VITA GM 850W ATX 3.1
Case: Sharkoon AK3
Cooler: Arctic Liquid Freezer III Pro 360
Fans: 3xArctic P12 Pro PST, 1x Arctic P12 Pro
*For free from his Dad, gonna get replaced by eiter a 9800X3D or a 9950X3D for X-Mas
If it helps anyone else the line needed to be:
```
options root=ZFS=rpool/ROOT/ubuntu_wg574t <rest of line>
```
That being the name outputted when running: `zfs list /`
Nice, it looks like there's going to be a #SecureBoot-signed version of #systemdboot in #DebianTrixie.
https://packages.debian.org/trixie/systemd-boot-efi-amd64-signed
rd.luks.data приходится использовать /dev/disk/by-id/... вместо UUID'а раздела на диске.cryptsetup open --type luks2 --persistent --allow-discards --perf-no_read_workqueue --perf-no_write_workqueue ...options rd.luks.data=7f2df3a2-3c68-492e-bbd6-1ccf956379c0=/dev/disk/by-id/nvme-VENDOR_MODEL_SERIAL_ID_-partN
options rd.luks.name=7f2df3a2-3c68-492e-bbd6-1ccf956379c0=crypto_dev_name
... или ...
options rd.luks.data=2b507209-fcf1-4aae-a55a-1ba4e908cc8b=/dev/disk/by-id/ata-VENDOR_MODEL_SERIAL_ID_-partNcryptsetup luksDump и отсутствующие в выдаче:lsblk -fls /dev/disk/by-id/