diff --git a/src/utils_blockdev.c b/src/utils_blockdev.c index 50de746f..63c410b6 100644 --- a/src/utils_blockdev.c +++ b/src/utils_blockdev.c @@ -309,7 +309,7 @@ int tools_wipe_all_signatures(const char *path, bool exclusive, bool only_luks) if (blk_is_superblock(h)) log_verbose(_("Existing '%s' superblock signature on device %s will be wiped."), blk_get_superblock_type(h), path); - if (blk_do_wipe(h)) { + if (blk_do_wipe(h) || fsync(fd)) { log_err(_("Failed to wipe device signature.")); r = -EINVAL; goto out;