From 4ec7f9186d01283ac08709011edf4e12a20bec01 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 16 Oct 2023 18:24:12 -0500 Subject: [PATCH] soci-settled: mount /lib/modules When booting a full mos system, mount /lib/modules from modules.quashfs in the bootkit layer. Signed-off-by: Serge Hallyn --- layers/build-krd/dracut/soci/soci-settled.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layers/build-krd/dracut/soci/soci-settled.sh b/layers/build-krd/dracut/soci/soci-settled.sh index c185bd6..d6996c3 100755 --- a/layers/build-krd/dracut/soci/soci-settled.sh +++ b/layers/build-krd/dracut/soci/soci-settled.sh @@ -247,6 +247,10 @@ soci_udev_settled() { if [ "$name" = "mosboot" ]; then mkdir -p /sysroot/factory soci_log_run mount --move /priv/factory /sysroot/factory + soci_log_run mkdir /bootkit + soci_log_run mosctl --debug mount --target bootkit /bootkit + soci_log_run mkdir -p /sysroot/lib/modules + soci_log_run mount /bootkit/bootkit/modules.squashfs /sysroot/lib/modules fi soci_info "TPM is ready for general boot" ;;