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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux