84c720f456
In a boot from an ISO modified by update-iso.sh with a ks-addon, the ks-addon.cfg was being unnecessarily copied in a kickstart postinstall scriptlet. This behaviour, copying the .cfg files, was originally required for copying the net-boot kickstarts for installation of other nodes, however the kickstarts are now packaged and installed, and no other .cfg files are required from the installation. As such, this update drops the copying of these files. Change-Id: Id088ff00711b0703299f822ab1f25901e94a6d4d Closes-Bug: 1875464 Signed-off-by: Don Penney <don.penney@windriver.com>
34 lines
510 B
INI
34 lines
510 B
INI
%pre --erroronfail
|
|
if [ -d /mnt/install/source ]; then
|
|
srcdir=/mnt/install/source
|
|
else
|
|
srcdir=/run/install/repo
|
|
fi
|
|
|
|
if [ -f ${srcdir}/ks-addon.cfg ]; then
|
|
cp ${srcdir}/ks-addon.cfg /tmp/
|
|
else
|
|
cat <<EOF > /tmp/ks-addon.cfg
|
|
# No custom addon included
|
|
EOF
|
|
fi
|
|
%end
|
|
|
|
%post --nochroot
|
|
if [ -d /mnt/install/source ]; then
|
|
srcdir=/mnt/install/source
|
|
else
|
|
srcdir=/run/install/repo
|
|
fi
|
|
|
|
%end
|
|
|
|
%post --erroronfail
|
|
|
|
# Source common functions
|
|
. /tmp/ks-functions.sh
|
|
|
|
%include /tmp/ks-addon.cfg
|
|
|
|
%end
|