Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Troubles with ugrd and encrypted rootfs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
iNeedIT
n00b
n00b


Joined: 10 Aug 2024
Posts: 14

PostPosted: Tue Dec 03, 2024 10:20 am    Post subject: Troubles with ugrd and encrypted rootfs Reply with quote

Hello folks!

Previous time, I decided to encrypt my rootfs 8)

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
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5184
Location: Bavaria

PostPosted: Tue Dec 03, 2024 2:26 pm    Post subject: Re: Troubles with ugrd and encrypted rootfs Reply with quote

iNeedIT wrote:
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.

You may want to read this article to get started:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Initramfs_Overview

There you will find links that are sure to help you.

You can use one of them to inspect the initramfs you are currently using:
https://wiki.gentoo.org/wiki/Custom_Initramfs#Extracting_the_cpio_archive
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
zen_desu
n00b
n00b


Joined: 25 Oct 2024
Posts: 39

PostPosted: Tue Dec 03, 2024 3:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum