From 085ccc81995ab3c73e7a011f7b122b1400f346ee Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Mon, 13 May 2013 23:07:58 +0200 Subject: [PATCH] btrfs: btrfsck is now actually the same binary as "btrfs" symlinked to save space. --- modules/tasks/filesystems/btrfs.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/tasks/filesystems/btrfs.nix b/modules/tasks/filesystems/btrfs.nix index 57a7e5e302da..d95a32e2e3f7 100644 --- a/modules/tasks/filesystems/btrfs.nix +++ b/modules/tasks/filesystems/btrfs.nix @@ -17,12 +17,13 @@ in boot.initrd.extraUtilsCommands = mkIf inInitrd '' - cp -v ${pkgs.btrfsProgs}/bin/btrfsck $out/bin + mkdir -p $out/bin cp -v ${pkgs.btrfsProgs}/bin/btrfs $out/bin + ln -sv btrfs $out/bin/btrfsck + ln -sv btrfsck $out/bin/fsck.btrfs # !!! Increases uncompressed initrd by 240k cp -pv ${pkgs.zlib}/lib/libz.so* $out/lib cp -pv ${pkgs.lzo}/lib/liblzo2.so* $out/lib - ln -sv btrfsck $out/bin/fsck.btrfs ''; boot.initrd.extraUtilsCommandsTest = mkIf inInitrd