copy files from CD to hard-drive

Brian Long brilong at cisco.com
Fri Mar 25 13:54:10 UTC 2005


On Fri, 2005-03-25 at 03:00, Florin Andrei wrote:
> I created a custom DVD installer, that also has a kickstart file. On the
> custom DVD i also put some files that i want to copy to the installed
> system after kickstart finishes up its job.
> 
> The problem is, i can't seem to find a way to do that.
> I have a pretty large %post section, wich must NOT be run with --
> nochroot (a lot of commands must be run on the target system). But from
> a chrooted %post i cannot access the install DVD.
> If i add after that another %post, this time with --nochroot, i get
> "Error code 256 encountered running a kickstart %pre/%post script"
> 
> This seems like such a typical situation, it's impossible that someone
> else didn't solve it already. So, how do i copy those supplemental files
> from the install DVD?

%post --nochroot

copy files from /mnt/cdrom/foo to /mnt/sysimage/foo

%post

run all your postinstall routines

/Brian/

-- 
     Brian Long                      |         |           |
     IT Data Center Systems          |       .|||.       .|||.
     Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
     Phone: (919) 392-7363           |   C i s c o   S y s t e m s




More information about the Kickstart-list mailing list