#[SOLVED (I can't read)] Cryptdevice, lvm, can't get initramfs to find root

76 messages ยท Page 1 of 1 (latest)

spare hawk
#

Turning into 2 hour installation...

#

Trying not to get frustrated but idk what I'm missing here

spiral drift
#

I guess that underscore is actually your cursor?

spare hawk
#

Yeah

spiral drift
#

What happens when you try and boot this?

#

Generally the root= argument is something like /dev/mapper/vg0-root depending on how you have named things

#

so /dev/mapper/pondpool-root perhaps?

spare hawk
#

I'll try that

spiral drift
#

When you unlock your luks in the iso it should get mapped in a similar way, so ls /dev/mapper may be useful to look at

spare hawk
#

Uno momento por favor

spare hawk
#

My fstab is empty...

spiral drift
#

Ah you should perhaps fix the fstab

spiral drift
# spare hawk

But looking at this I think I was right. Your volumes are on /dev/mapper/pondpool-*

spare hawk
#

It's fixed pepe_weed

#

Fstab looks good, grub config made, rebooting ๐Ÿคž

mighty pasture
# spare hawk

wtf what is this partition table???? ive never seen that? why did u partition like this?

#

i dont want to be rude im just curious

spare hawk
#

Insane

spiral drift
spare hawk
#

Crypt base, with lvm on top

spiral drift
spare hawk
spiral drift
#

hmm can you show your mkinitcpio hooks?

spare hawk
#

Imma double triple check the UUID

mighty pasture
#

for fun?

spiral drift
# mighty pasture for fun?

LUKS is full disk encryption so you can imagine why that is good. LVM is a convenient way to make virtual partitions

#

Mounting a partition straight out of a LUKS container can be a pain. lvm makes it all a lot easier and nicer

spare hawk
#

I have block encryption lvm2 fsck ...

spiral drift
#

it's encrypt isn't it?

spare hawk
#

Should be, about to double check the hooks

#

Yes, encrypt*

spiral drift
# spare hawk Insane

It shouldn't be getting this far without asking you to decrypt. That's the lvm/fsck part of the init process

spare hawk
spiral drift
#

Mounting /dev/mapper/<whatever>-root should be after the decrypt, and after the mapper has done its stuff

spare hawk
#

Should this be in the grub_cmdline_linux_degault

#

Or non default

spiral drift
#

Just the default should be OK I believe

#

Got anything set in /etc/kernel/cmdline?

spiral drift
mighty pasture
spiral drift
#

Not attempting to decrypt at all makes me think it's a misconfiguration in mkinicpio

spare hawk
#

I must protect my battlefield 4

spiral drift
#

I only ask because I have done exactly that before

#

"y no decrypt" - well, helps to install the thing lol

spare hawk
#

What's the path for mkini

#

Fond er

#

Double checking uuid

#

I WAS MISSING A CHUNK

spiral drift
#

Ohhhh I see!

spare hawk
#

BC65

spiral drift
#

In the UUID

spare hawk
#

Hey hey

spiral drift
#

I recommend some bashism for this sorta thing? ๐Ÿ™‚ saves a lot of typing and typos

#

Could do something like sudo blkid | grep -i sda2 | sudo tee -a /etc/default/grub to get the UUID from the block device into the grub config file. Then you can go in and copy-pasta it where it needs to actually be

spare hawk
spiral drift
#

Oh I mean in nano or vim

#

That's just a quick and dirty way of getting the block UUID into the file

#

then you can hack it

spare hawk
#

I see, tyvm ๐Ÿ’œ

#

[SOLVED (I can't read)] Cryptdevice, lvm, can't get initramfs to find root

mighty pasture
#

... solved