From 351b4a0ce448c259ae3ef1941911c3142d1825a7 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 31 May 2017 09:43:06 -0700 Subject: [PATCH] Remove incorrect variables from rhel7-livemedia.ks example The only environmental variable set during %post is $ANA_INSTALL_PATH which points to the installroot (usually /mnt/sysimage). It can be used in a %post --nochroot to copy things from the installer root to the target's root filesystem. This removes the %post --nochroot section because the image is not accessable at this point in the process. Items that need to go into the / of the iso need to be added in the final iso creation templates, like x86_64.tmpl Resolves: rhbz#1430547 --- docs/rhel7-livemedia.ks | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/rhel7-livemedia.ks b/docs/rhel7-livemedia.ks index 6d6ea2cc..cf13ba3c 100644 --- a/docs/rhel7-livemedia.ks +++ b/docs/rhel7-livemedia.ks @@ -312,16 +312,6 @@ touch /var/lib/readahead/early.sorted rm /var/lib/systemd/random-seed %end -%post --nochroot -cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL - -# only works on x86, x86_64 -if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then - if [ ! -d $LIVE_ROOT/LiveOS ]; then mkdir -p $LIVE_ROOT/LiveOS ; fi - cp /usr/bin/livecd-iso-to-disk $LIVE_ROOT/LiveOS -fi -%end - %post cat >> /etc/rc.d/init.d/livesys << EOF # disable screensaver locking