|
|
|
@ -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 ''
|
|
|
|
|