回复: How to copy data from CDROM(iso) to installed system in kickstart in CentOS 7.0 ?
jojo <[email protected]> Mon, 11 Aug 2014 11:35:59 +0800
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected] (mailto:[email protected])> 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 > > [email protected] (mailto:[email protected]) > > https://www.redhat.com/mailman/listinfo/kickstart-list > > > > > _______________________________________________ > Kickstart-list mailing list > [email protected] (mailto:[email protected]) > https://www.redhat.com/mailman/listinfo/kickstart-list > > _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list