Skip to content

Commit

Permalink
create_disk: Use fsfreeze
Browse files Browse the repository at this point in the history
It's the generic fs-independent tool.  No strong motivation,
just pointed someone else at this code.

We made the equivalent change in bootc
containers/bootc@15de723
  • Loading branch information
cgwalters authored and jlebon committed Oct 16, 2023
1 parent d98f3de commit d6f76e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/create_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,8 @@ fstrim -a -v
# Ensure the filesystem journals are flushed
for fs in $rootfs/boot $rootfs; do
mount -o remount,ro "$fs"
xfs_freeze -f "$fs"
xfs_freeze -u "$fs"
fsfreeze -f "$fs"
fsfreeze -u "$fs"
done

umount -R $rootfs
Expand Down

0 comments on commit d6f76e4

Please sign in to comment.