The officially official Devuan Forum!

You are not logged in.

#1 2025-01-11 12:11:51

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 150  

boot on LUKS encrypted drive ( initramfs Vs initrd ) ?

Hi everyone,

I've installed a Devuan rpi version ( 2025-01-10-0317_rpi-4-devuan-daedalus-6.1.93-arm64-ext4.zip ) on my Rapsberry pi 4.

I've recompiled the https://github.com/raspberrypi/linux kernel ( 6.1.93 ) to support some additional cryptographic algorithm.

I'm following the LUKS on Raspberry Pi 2021 guide
That explain step by step how enable LUKS on raspberry pi.

But the guide use initramfs and Devuan rpi seem to use initrd

So the question is: should I migrate to initramfs ? and how check whats is inside my current initrd ?

or keep-up with initrd but then how insert the necessary to enable LUKS drive to be mounted by it ( initrd ) ?

Thanks..


Linux noob, plz be kind big_smile

Offline

#2 2025-01-12 15:06:00

SpongeBOB
Member
From: Brussels
Registered: 2022-02-07
Posts: 150  

Re: boot on LUKS encrypted drive ( initramfs Vs initrd ) ?

I've did

root: file /boot/broadcom/initrd.gz
initrd.gz: Zstandard compressed data ....

root: unmkinitramfs /boot/broadcom/initrd.gz Extracted/
# data where extracted to Extracted/
# but I go few error like:
# cpio: cannot link usr/sbin/vconfig to usr/sbin/watchdog: Operation not permitted

So the initrd.gz file is actually an initramfs file smile it was misleading.

But now I have a problem with mkinitramfs :'(
https://programming.dev/post/23945016

You can reply here , i'll merge both thread smile

Thanks


Linux noob, plz be kind big_smile

Offline

#3 Yesterday 16:12:38

c0rnelius
Member
Registered: 2020-06-13
Posts: 53  

Re: boot on LUKS encrypted drive ( initramfs Vs initrd ) ?

It is just a script that creates a copy of the initramfs that is generated, so there is a static name for the config.txt to use.

/etc/initramfs/post-update.d/99-initrd

Offline

Board footer