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.
This commit is contained in:
Brian C. Lane 2017-03-08 16:13:36 -08:00
parent cc56a5b5c9
commit 092c593d6b

View File

@ -292,16 +292,6 @@ rm /var/lib/systemd/random-seed
rm -f /boot/*-rescue* rm -f /boot/*-rescue*
%end %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 %post
cat >> /etc/rc.d/init.d/livesys << EOF cat >> /etc/rc.d/init.d/livesys << EOF