|
|
@ -31,14 +31,14 @@ in stdenv.mkDerivation {
|
|
|
|
ln -s bin $out/sbin
|
|
|
|
ln -s bin $out/sbin
|
|
|
|
ln -s ../bin $out/usr/bin
|
|
|
|
ln -s ../bin $out/usr/bin
|
|
|
|
ln -s ../sbin $out/usr/sbin
|
|
|
|
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) ''
|
|
|
|
'' + lib.optionalString (bootScript != null) ''
|
|
|
|
cp ${bootScript} $out/boot.sh
|
|
|
|
cp ${bootScript} $out/boot.sh
|
|
|
|
chmod +x $out/boot.sh
|
|
|
|
chmod +x $out/boot.sh
|
|
|
|
ln -s boot.sh $out/init
|
|
|
|
ln -s boot.sh $out/init
|
|
|
|
chmod +x $out/sbin/init
|
|
|
|
chmod +x $out/sbin/init
|
|
|
|
'' + lib.optionalString withBusybox ''
|
|
|
|
|
|
|
|
cp -r ${busybox}/bin $out/bin
|
|
|
|
|
|
|
|
chmod -R u+w $out/bin
|
|
|
|
|
|
|
|
'' + lib.optionalString withSignify ''
|
|
|
|
'' + lib.optionalString withSignify ''
|
|
|
|
cp ${signify}/bin/signify $out/bin/
|
|
|
|
cp ${signify}/bin/signify $out/bin/
|
|
|
|
'' + lib.optionalString withLvm ''
|
|
|
|
'' + lib.optionalString withLvm ''
|
|
|
|