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
This commit is contained in:
		
							parent
							
								
									c049f01c46
								
							
						
					
					
						commit
						351b4a0ce4
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user