fix: switch to writeClosure
Some checks failed
Some checks failed
writeReferencesToFile has been removed from nixpkgs… Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
6dd34b97a9
commit
752ff19e21
2 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ in
|
||||||
mount -t sysfs none /sys
|
mount -t sysfs none /sys
|
||||||
${busybox}/bin/sh
|
${busybox}/bin/sh
|
||||||
'';
|
'';
|
||||||
refs = pkgs.writeReferencesToFile busybox;
|
refs = pkgs.writeClosure [ busybox ];
|
||||||
in runCommand "initramfs.cpio" {} ''
|
in runCommand "initramfs.cpio" {} ''
|
||||||
cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out
|
cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out
|
||||||
dir /proc 0755 0 0
|
dir /proc 0755 0 0
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, pkgsBuildBuild
|
, pkgsBuildBuild
|
||||||
, runCommand
|
, runCommand
|
||||||
, cpio
|
, cpio
|
||||||
, writeReferencesToFile
|
, writeClosure
|
||||||
, writeScript
|
, writeScript
|
||||||
} :
|
} :
|
||||||
let
|
let
|
||||||
|
@ -18,7 +18,7 @@ let
|
||||||
mount -t sysfs none /sys
|
mount -t sysfs none /sys
|
||||||
${busybox}/bin/sh
|
${busybox}/bin/sh
|
||||||
'';
|
'';
|
||||||
refs = writeReferencesToFile busybox;
|
refs = writeClosure [ busybox ];
|
||||||
in runCommand "initramfs.cpio" { } ''
|
in runCommand "initramfs.cpio" { } ''
|
||||||
cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out
|
cat << SPECIALS | ${gen_init_cpio}/bin/gen_init_cpio /dev/stdin > out
|
||||||
dir /proc 0755 0 0
|
dir /proc 0755 0 0
|
||||||
|
|
Loading…
Reference in a new issue