Re: How to copy data from CDROM(iso) to installed system in kickstart in CentOS 7.0 ?
"Mr. Pushpendra Chavan" <[email protected]> Mon, 28 Jul 2014 14:46:46 +0530
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <CADEOTdG-4dk7tbnNFdDBcWt_7UVZvK6EzdSZDJu8wyLdFErmWg@mail.gmail.com> |
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]> 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] > https://www.redhat.com/mailman/listinfo/kickstart-list