live/x86.tmpl: Copy livecd-iso-to-disk script, if installed

A post-installation script in fedora-live-base.ks actually modifies
Lorax (not idempotently) with the change in this commit while it is
running. This modification belongs directly in Lorax instead.

Note a subtle distinction in behavior that has been preserved here.
Lorax will copy the livecd-iso-to-disk script from the installroot
(if present). Running livecd-creator will copy it from the existing
root filesystem instead.

(cherry picked from commit 9defb143da)
This commit is contained in:
David Ward 2021-01-18 10:49:33 -05:00 committed by Brian C. Lane
parent cce83b6354
commit 60188d5809
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,12 @@ hardlink ${KERNELDIR}/initrd.img ${BOOTDIR}
<% filegraft += " {0}={1}/{0}".format(basename(f), outroot) %>
%endfor
# Add the livecd-iso-to-disk script if installed
<% f = "usr/bin/livecd-iso-to-disk" %>
%if exists(f):
install ${f} ${LIVEDIR}/${f|basename}
%endif
## make boot.iso
runcmd xorrisofs ${isoargs} -o ${outroot}/images/boot.iso \
-isohybrid-mbr /usr/share/syslinux/isohdpfx.bin \