From 5cbc0be7a6fa4de5ec006661382fefc3f66d77ad Mon Sep 17 00:00:00 2001 From: Johan-Liebert1 Date: Thu, 28 Aug 2025 17:53:57 +0530 Subject: [PATCH] initramfs: Bind mount /etc This is prep work for eventual integration with composefs-native backend Signed-off-by: Johan-Liebert1 --- crates/initramfs/src/mount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/initramfs/src/mount.rs b/crates/initramfs/src/mount.rs index b4f2a4d8..5dea8c9d 100644 --- a/crates/initramfs/src/mount.rs +++ b/crates/initramfs/src/mount.rs @@ -306,7 +306,7 @@ pub fn setup_root(args: Args) -> Result<()> { // etc + var let state = open_dir(open_dir(&sysroot, "state/deploy")?, image.to_hex())?; - mount_subdir(&new_root, &state, "etc", config.etc, MountType::Overlay)?; + mount_subdir(&new_root, &state, "etc", config.etc, MountType::Bind)?; mount_subdir(&new_root, &state, "var", config.var, MountType::Bind)?; if cfg!(not(feature = "pre-6.15")) {