Fix double fsck in sysupgrade(8).

This commit is contained in:
Jonas 'Sortie' Termansen 2016-08-28 16:24:26 +02:00
parent 3831d99149
commit c01fcd36c3
1 changed files with 3 additions and 0 deletions

View File

@ -238,7 +238,10 @@ bool fsck(struct filesystem* fs)
warnx("%s: Mandatory repair failed: %s: %s", bdev_path,
fs->fsck, "Filesystem checker was unsuccessful");
else
{
fs->flags &= ~(FILESYSTEM_FLAG_FSCK_SHOULD | FILESYSTEM_FLAG_FSCK_MUST);
return true;
}
return false;
}