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
|
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
|
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
|
# !!! Increases uncompressed initrd by 240k
|
||||||
cp -pv ${pkgs.zlib}/lib/libz.so* $out/lib
|
cp -pv ${pkgs.zlib}/lib/libz.so* $out/lib
|
||||||
cp -pv ${pkgs.lzo}/lib/liblzo2.so* $out/lib
|
cp -pv ${pkgs.lzo}/lib/liblzo2.so* $out/lib
|
||||||
ln -sv btrfsck $out/bin/fsck.btrfs
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
boot.initrd.extraUtilsCommandsTest = mkIf inInitrd
|
boot.initrd.extraUtilsCommandsTest = mkIf inInitrd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user