[initcpiocfg] fix 'fsck'

This commit is contained in:
Philip Müller 2021-01-30 11:08:39 +01:00
parent 9ee5e2cbde
commit b47e25155e

View File

@ -185,7 +185,7 @@ def modify_mkinitcpio_conf(partitions, root_mount_point):
elif (btrfs == "yes"
and cpu['proc0']['vendor_id'].lower() == "genuineintel"):
modules.append("crc32c-intel")
elif not os.path.exists(os.path.join(root_mount_point, "usr/bin/grub-set-bootflag")):
else:
hooks.append("fsck")
write_mkinitcpio_lines(hooks, modules, files, root_mount_point)