How to copy data from CDROM(iso) to installed system in kickstart in CentOS 7.0 ?

Mr. Pushpendra Chavan chavanpushpendra at gmail.com
Mon Jul 28 09:16:46 UTC 2014


Hello Jojo,

I think the DVD iso is not mounted at /mnt/source in CentOS 7 but at
/run/install/repo

So try out the following script.

%post --nochroot
cp -af /run/install/repo/Test /mnt/sysimage/
%end

Is this working?

In case this too not working, you can simply have a workaround as follows.

%post --nochroot
mkdir /tmp/repo
mount /dev/sr0 /mnt/repo
cp -af /mnt/repo/Test /mnt/sysimage/
%end


On Sun, Jul 27, 2014 at 9:44 AM, jojo <rjiejie at gmail.com> wrote:
> Hi,
>
> I rebuild CentOS iso target with a customized directory named "Test" in
> directory "isolinux/" .
>
> In the old CentOS 6.x version,
>
> i do copy like following command in kickstart is ok:
>
> %post --nochroot
> cp -af /mnt/source/Test /mnt/sysimage/
> %end
>
> but in CentOS 7.0,
>
> the same command is failed :(
>
> something what i did is wrong ?
>
> Thanks,
>
> - Jojo
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list




More information about the Kickstart-list mailing list