initrd: Add `tree` output to initrd-meta
This ends up being useful to peek into the initrd cpio without actually
having to crack it open.
I have used this to track down a bad symlink.
@@ -187,6 +187,7 @@ let
nativeBuildInputs = with pkgs.buildPackages; [
ncdu
cpio
+ tree
];
} ''
mkdir initrd
@@ -194,6 +195,7 @@ let
mkdir -p $out
ncdu -0x -o $out/initrd.ncdu ./initrd
+ tree -a ./initrd > $out/tree
'';
in
{
