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:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user