]> git.ipfire.org Git - thirdparty/dracut.git/commit
dracut.sh: don't call fsfreeze on subvol of root file system
authorMartin Wilck <mwilck@suse.com>
Wed, 29 Jan 2020 22:53:29 +0000 (23:53 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 6 Mar 2020 10:37:16 +0000 (11:37 +0100)
commit0386e4627779cb51f4292b3c642d90586d5e71b4
tree34d552ade8abaabfb2cc3fdd92e4a46138c8701d
parent7a04712ad0efa9afa3759656ea1b26db40a8a29e
dracut.sh: don't call fsfreeze on subvol of root file system

dracut.sh already doesn't call fsfreeze if the output file is on
the root file system. For btrfs, however, this is not sufficient.
Because fsfreeze is a superblock operation, and all btrfs subvolumes
share the same superblock, fsfreeze may freeze the entire system
if the subvolume on which the output file is written and / are
subvolumes of the same file system. Avoid this by comparing file
system UUIDs for btrfs.

Fixes: de576db3c225 ("call fsfreeze(8) on /boot to flush initramfs data & metadata to media")
dracut.sh