1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00

initramfs: Bind mount /etc

This is prep work for eventual integration with composefs-native backend

Signed-off-by: Johan-Liebert1 <pragyanpoudyal41999@gmail.com>
This commit is contained in:
Johan-Liebert1
2025-08-28 17:53:57 +05:30
parent 50722fa3d3
commit 5cbc0be7a6

View File

@@ -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")) {