nixos/xfs: Add xfs_repair to the initrd

Closes #8820

Changed files
+1
nixos
modules
tasks
filesystems
+1
nixos/modules/tasks/filesystems/xfs.nix
···
boot.initrd.extraUtilsCommands = mkIf inInitrd
''
copy_bin_and_libs ${pkgs.xfsprogs.bin}/bin/fsck.xfs
+
copy_bin_and_libs ${pkgs.xfsprogs.bin}/bin/xfs_repair
'';
# Trick just to set 'sh' after the extraUtils nuke-refs.