Skip to content

Commit 01501b2

Browse files
committed
grubconfigs: use fsfreeze_thaw_cycle()
1 parent 4edbc36 commit 01501b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/grubconfigs.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use bootc_utils::CommandRunExt;
77
use fn_error_context::context;
88
use openat_ext::OpenatDirExt;
99

10+
use crate::freezethaw::fsfreeze_thaw_cycle;
11+
1012
/// The subdirectory of /boot we use
1113
const GRUB2DIR: &str = "grub2";
1214
const CONFIGDIR: &str = "/usr/lib/bootupd/grub2-static";
@@ -85,6 +87,8 @@ pub(crate) fn install(
8587
None
8688
};
8789

90+
fsfreeze_thaw_cycle(grub2dir.open_file(".")?)?;
91+
8892
if let Some(vendordir) = installed_efi_vendor {
8993
log::debug!("vendordir={:?}", &vendordir);
9094
let vendor = PathBuf::from(vendordir);
@@ -104,6 +108,7 @@ pub(crate) fn install(
104108
.context("Writing bootuuid.cfg to efi dir")?;
105109
println!("Installed: {target:?}");
106110
}
111+
fsfreeze_thaw_cycle(efidir.open_file(".")?)?;
107112
}
108113
}
109114

0 commit comments

Comments
 (0)