View previous topic :: View next topic |
Author |
Message |
iNeedIT n00b
Joined: 10 Aug 2024 Posts: 14
|
Posted: Tue Dec 03, 2024 10:20 am Post subject: Troubles with ugrd and encrypted rootfs |
|
|
Hello folks!
Previous time, I decided to encrypt my rootfs
The problem is exactly initramfs. I don't know how that thing even works. I seen many youtube video, but unfortunately everyone guide is old and deprecated.
I used ugrd in this case, because is it the most simple way to do it.
I am getting massage on boot:
Quote: | EFI stub: Loaded initrd from command line option |
And later...
Quote: |
VFS: Cannot open root device "" or unknow-block(0,0): error -6
Please append a correct "root=" boot option: here are the available partitions
103:00000 50001076608 nvme0n1
(driver?)
103:000001 nvme0n1p1
103:000002 nvme0n1p2
List of all bdev filesystems:
vfat
msdos
exfat
fuseblk
xfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(0,0)
|
And what that all stuff means? I don't get it.
Nvme0n1p1 is boot partition. Nvme0n1p2 is encrypted.
Why ugrd is not even prompting me to specify password to unblock disk? This even makes no sens...
In nutshell:
1. I used gentoo wiki to set up kernel, rootfs, and ugrd
2. I mounted /boot and used 'make install'
3. efibootmgr --create --disk /dev/nvme0n1 --label "Gentoo3" --loader "kernel-6.6.62-gentoo" --unicode "initrd=initramfs-6.6.62-gentoo.img"
COMMON_FLAGS="-O2 -march=znver3 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
ACCEPT_KEYWORDS="amd64"
# NOTE: This stage was built with the bindist USE flag enabled
MAKEOPTS="-j4"
ACCEPT_LICENSE="*"
VIDEO_CARDS="amdgpu radeonsi"
USE="-X ugrd cryptsetup wayland alsa pipewire wireplumber wifi bluetooth systemd network elogind opengl -openrc -doc -man initramfs -bluetooth"
L10N="en-US eng en"
.config https://pastebin.com/ZnzuSQ9d
Gentoo is on systemd
Any suggestion to fix it? |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5175 Location: Bavaria
|
|
Back to top |
|
|
zen_desu n00b
Joined: 25 Oct 2024 Posts: 35
|
Posted: Tue Dec 03, 2024 3:44 pm Post subject: |
|
|
ugrd uses xz compression by default, you have this set:
Code: | # CONFIG_RD_XZ is not set |
you can either enable that in the kernel or you can disable xz compression in ugrd by setting
Code: | cpio_compression = false |
in /etc/ugrd/config.toml _________________ µgRD dev
Wiki writer |
|
Back to top |
|
|
|