Xubuntu installation gone wrong?

I am new to all this so I probably screwed up a lot, but Xubuntu 24.04.4 was working last night. This morning it got stuck on initramfs before the login screen. I don’t even know what I did to ‘fix...

Ask Ubuntu
Install gone wrong?

Oookay. So I am new to all this so I probably screwed up a lot. But the Xubuntu 24.04.4 was working last night. This morning I got stuck on initramfs before the login. I don’t even know what I did ...

Ask Ubuntu

After having it just lying around, I finally took the time to set up my Raspi again. I've now got a booting Pi and my first alpine contribution (https://gitlab.alpinelinux.org/alpine/mkinitfs/-/merge_requests/215 

(the `usbdelay` command line parameter of alpine's initramfs `init`semms to get ignored in some cases - which is kind of an issue, if your root filesystem resides on an external USB HDD that takes some 20seconds to become available)

#alpine #alpinelinux #initramfs #mkinitfs

init: pass usbdelay if root= is set (!215) · Merge requests · alpine / mkinitfs · GitLab

This is required if the (encrypted?) root filesystem is on an external USB hdd which takes quite some time to spin up. Otherwise booting fails with a timeout...

GitLab
Remotely Unlocking An Encrypted Hard Disk

Can you remotely unlock an encrypted hard disk? [Jyn] needed to unlock their home server after it rebooted even if they weren’t home. Normally, they used Tailscale to remote in, but you can&#…

Hackaday

A little tip to anyone use #bluetooth (not custom wireless) keyboard and using #LUKS disk encryption.

If you cannot enter the LUKS passphrase at boot, it is because the Bluetooth module and connection are not activated yet.

To fix this, create /etc/dracut.conf.d/bluetooth.conf file and put this line on that file:

add_dracutmodules+=" bluetooth "

Don't forget to regenate your #initramfs by:

sudo dracut --regenerate-all --force

Tested on #fedora 43

Half of the support for the #initrd (not to be confused with #initramfs!) was removed from #Linux 7.0 through a #vfs merge from @brauner:

https://git.kernel.org/torvalds/c/996812c453cafa042f2e674738dbf8fa495661f3 and https://git.kernel.org/torvalds/c/ef12d0573a7f5e7a495e81d773ae5f3e98230cd4

""Remove the deprecated linuxrc-based initrd code path and related dead code. The linuxrc initrd path was deprecated in 2020 and this series completes its removal. If we see real-life regressions we'll revert. […]

The no-op load_ramdisk= and prompt_ramdisk= parameters are dropped, and noinitrd and ramdisk_start= gain deprecation warnings.

Initramfs is entirely unaffected. The non-linuxrc initrd path (root=/dev/ram0) is preserved but now carries a deprecation warning targeting January 2027 removal""

#Kernel #LinuxKernel

Merge tag 'vfs-7.0-rc1.initrd' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs - kernel/git/torvalds/linux.git - Linux kernel source tree

@w84death @whitequark @landley granted the 1440kB is the entire boot image for @OS1337 and the #linux #kernel + #initramfs with #toybox comes out to ~ 700kB.

Во времена #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Не обязательно задавать таким образом по одной опции на строке, можно устраивать свалку пихая всё в одну большую строку.

Комментарий №1
В данном примере, это когда swap идёт не файлом, а отдельным разделом на диске, такое размещение упрощает использование swap для hibernate.

Комментарий №2
Все эти LUKS-опции не обязательно указывать при каждом запуске системы в
/boot/loader/entries/... файлах или через загрузочные записи UEFI внутри #NVRAM
Можно прописать всё это сопоставление и через файл
/etc/crypttab.initramfs перед генерацией\созданием #initramfs образа.

#linux

The EFI Boot Stub — The Linux Kernel documentation

Today, I built a cpu #kernel for a #camera again. ✨👩‍💻✨
I.e., I could do `insmod ipcam some-mod.ko` and other fun things.

It took about a minute to build an #initramfs with u-root and cpud *and* the kernel. Now that is really hard to beat.

Speaking of which, we have a demo now showing how fast u-root builds and runs:
https://htmlpreview.github.io/?https://github.com/u-root/u-root/blob/main/tools/testramfs/cinema/index.html

For more, see https://u-root.org 👀

GitHub & BitBucket HTML Preview