=?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_?=How to copy data from CDROM(iso) to installed system in kickstart in CentOS 7.0 ?
jojo
rjiejie at gmail.com
Mon Aug 11 03:35:59 UTC 2014
Hi Mr. Pushpendra,
Sorry for reply so late :)
It's working follow your steps as bellow:
%post --nochroot
cp -af /run/install/repo/Test /mnt/sysimage/
%end
Thanks,
- Jojo
在 2014年7月28日星期一,下午5:16,Mr. Pushpendra Chavan 写道:
> 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 (mailto: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 (mailto:Kickstart-list at redhat.com)
> > https://www.redhat.com/mailman/listinfo/kickstart-list
> >
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com (mailto:Kickstart-list at redhat.com)
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20140811/71a75cc6/attachment.htm>
More information about the Kickstart-list
mailing list