Skip to content

Commit 5cbc0be

Browse files
initramfs: Bind mount /etc
This is prep work for eventual integration with composefs-native backend Signed-off-by: Johan-Liebert1 <[email protected]>
1 parent 50722fa commit 5cbc0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/initramfs/src/mount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ pub fn setup_root(args: Args) -> Result<()> {
306306

307307
// etc + var
308308
let state = open_dir(open_dir(&sysroot, "state/deploy")?, image.to_hex())?;
309-
mount_subdir(&new_root, &state, "etc", config.etc, MountType::Overlay)?;
309+
mount_subdir(&new_root, &state, "etc", config.etc, MountType::Bind)?;
310310
mount_subdir(&new_root, &state, "var", config.var, MountType::Bind)?;
311311

312312
if cfg!(not(feature = "pre-6.15")) {

0 commit comments

Comments
 (0)