From e39c62584be69061b81d99389c82ceee4a6f9448 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 8 Mar 2017 16:13:36 -0800 Subject: [PATCH] INSTALL_ROOT and LIVE_ROOT are not available during %post These were set by livecd-creator, and the %post section was used to setup the license files on the / of the iso which will not work from inside anaconda so drop it completely. (cherry picked from commit 092c593d6b40278756a90237b80a776f292820e1) --- docs/fedora-livemedia.ks | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/docs/fedora-livemedia.ks b/docs/fedora-livemedia.ks index fc735c39..c854ad13 100644 --- a/docs/fedora-livemedia.ks +++ b/docs/fedora-livemedia.ks @@ -292,16 +292,6 @@ rm /var/lib/systemd/random-seed rm -f /boot/*-rescue* %end -%post --nochroot -cp $INSTALL_ROOT/usr/share/licenses/*-release/* $LIVE_ROOT/ - -# 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