You are not logged in.

#1 2025-07-22 10:34:17

amish
Member
Registered: 2014-05-10
Posts: 503

Is it safe to use kernel parameters of both sd-encrypt and encrypt?

So I am trying to switch from busybox based initial ramdisk to systemd based initial ramdisk.

I using Mkinitcpio#Common_hooks as reference.

But I have a query and need clarification.

Is it safe to include kernel parameters of both, encrypt and sd-encrypt hook? i.e. specify cryptdevice as well as rd.luks.name in kernel parameters in grub.cfg.

This way I can switch between encrypt and sd-encrypt hooks anytime without needing to modify grub.cfg in future.

Or can some programs get confused due to existence of both kernel parameters and may do unexpected things?

I tried this on my system and system booted in both cases (busybox or systemd).

But not sure if any program/tool looking at kernel parameters may break or do unexpected thing or get confused?

Please clarify.

Thank you.

Offline

Board footer

Powered by FluxBB