diff --git a/src/userspace/default.nix b/src/userspace/default.nix index 3a67b4f..48719cc 100644 --- a/src/userspace/default.nix +++ b/src/userspace/default.nix @@ -31,14 +31,14 @@ in stdenv.mkDerivation { ln -s bin $out/sbin ln -s ../bin $out/usr/bin ln -s ../sbin $out/usr/sbin + '' + lib.optionalString withBusybox '' + cp -r ${busybox}/bin $out/bin + chmod -R u+w $out/bin '' + lib.optionalString (bootScript != null) '' cp ${bootScript} $out/boot.sh chmod +x $out/boot.sh ln -s boot.sh $out/init chmod +x $out/sbin/init - '' + lib.optionalString withBusybox '' - cp -r ${busybox}/bin $out/bin - chmod -R u+w $out/bin '' + lib.optionalString withSignify '' cp ${signify}/bin/signify $out/bin/ '' + lib.optionalString withLvm ''