|
|
|
@ -8,12 +8,11 @@
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
nixpkgsOnBuildForHost.stdenv.mkDerivation {
|
|
|
|
|
name = "initramfs";
|
|
|
|
|
name = "initramfs.cpio";
|
|
|
|
|
nativeBuildInputs = with nixpkgsOnBuildForBuild; [ findutils cpio ];
|
|
|
|
|
srcs = [ ];
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
buildPhase = ''
|
|
|
|
|
mkdir -p $out
|
|
|
|
|
mkdir build
|
|
|
|
|
mkdir -p build/lib/modules
|
|
|
|
|
BUILD=$(pwd)/build
|
|
|
|
@ -25,7 +24,7 @@ nixpkgsOnBuildForHost.stdenv.mkDerivation {
|
|
|
|
|
popd
|
|
|
|
|
chmod -R u+w $BUILD
|
|
|
|
|
pushd $BUILD
|
|
|
|
|
find . | cpio --create -H newc -R +0:+0 > $out/initramfs.cpio
|
|
|
|
|
find . | cpio --create -H newc -R +0:+0 > $out
|
|
|
|
|
popd
|
|
|
|
|
'';
|
|
|
|
|
dontInstall = true;
|
|
|
|
|