Trying to copy some files from my custom CentOS 7 install ISO to the new install in the
I've tried all of these:
cp /dev/cdrom/scripts/myscript.sh /etc/myscripts/myscript.sh cp /dev/cdrom:/scripts/myscript.sh /etc/myscripts/myscript.sh cp /mnt/sysimage/root/scripts/myscript.sh /etc/myscripts/myscript.sh cp /scripts/myscript.sh /etc/myscripts/myscript.sh
But none of those end up with
myscript.sh being in
Where does the install mount the cdrom?
%post --nochroot #!/bin/sh set -x -v cp -r /run/install/repo/scripts/myscript.sh /mnt/sysimage/etc/httpd/conf/myscript.sh
which results in the install not booting (just hangs on the splash)
%post --nochroot cp -r /run/install/repo/scripts/myscritp.sh /mnt/sysimage/etc/myscritp.sh %end
Works and the file is copied from the install media
isolinux/scripts dir to the
/etc directory on the install target filesystem.