mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
btrfs: btrfsck is now actually the same binary as "btrfs"
symlinked to save space.
This commit is contained in:
parent
40fb90a295
commit
085ccc8199
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user