mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
ipxe: fix ISO build
Without this change, it doesn't seem to properly generate ISOs with embedded scripts.
This commit is contained in:
parent
9bf653c06c
commit
4d7bea7e5e
|
@ -26,6 +26,7 @@ stdenv.mkDerivation {
|
|||
makeFlags =
|
||||
[ "ECHO_E_BIN_ECHO=echo" "ECHO_E_BIN_ECHO_E=echo" # No /bin/echo here.
|
||||
"ISOLINUX_BIN_LIST=${syslinux}/share/syslinux/isolinux.bin"
|
||||
"LDLINUX_C32=${syslinux}/share/syslinux/ldlinux.c32"
|
||||
] ++ lib.optional (embedScript != null) "EMBED=${embedScript}";
|
||||
|
||||
|
||||
|
@ -34,6 +35,7 @@ stdenv.mkDerivation {
|
|||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
|
||||
sed -i '/cp \''${ISOLINUX_BIN}/s/$/ --no-preserve=mode/' src/util/geniso
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue