mirror of
https://github.com/kairos-io/kcrypt.git
synced 2025-07-13 05:54:24 +00:00
Skip kcrypt on non-immmutable systems
Disable the module creating any services if the inmutability layer is not gonna run as it makes no sense to load kcrypt if we are not mounting our stuff. Fixes https://github.com/kairos-io/kairos/issues/642 Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
parent
fa9eb79998
commit
9c7c27af89
@ -9,6 +9,17 @@ GENERATOR_DIR="$2"
|
||||
|
||||
oem_label=$(getarg rd.cos.oemlabel=)
|
||||
|
||||
// Several things indicate booting from a different media so we should not do anything
|
||||
// rd.cos.disable is set on LIVECD and disables mounting of any type
|
||||
if getargbool 0 rd.cos.disable; then
|
||||
exit 0
|
||||
fi
|
||||
// Netboot is set on...well, netboot obiously
|
||||
if getargbool 0 netboot; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
# See https://github.com/kairos-io/packages/blob/d12b12b043a71d8471454f7b4fc84c3181d2bf60/packages/system/dracut/immutable-rootfs/30cos-immutable-rootfs/cos-generator.sh#L29
|
||||
{
|
||||
echo "[Unit]"
|
||||
|
Loading…
Reference in New Issue
Block a user