Centos 7 kickstart copy from iso

General support questions
Post Reply
Inishev
Posts: 18
Joined: 2015/06/19 13:23:26

Centos 7 kickstart copy from iso

Post by Inishev » 2018/10/22 15:10:50

hi
i need copy custom script from iso to directory in the system.
How can i do this?
I think i can do this in %post section, but all my attempt was failed

Example:

%post --nochroot --log /mnt/sysimage/root/ks.log.0
cp /mnt/source/tst,sh /mnt/sysimage/root/tst.sh
%end


Please help me!
If you can give an example, please!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 kickstart copy from iso

Post by TrevorH » 2018/10/22 15:20:17

The kickstart used to install the system is already present in /root/anaconda-ks.cfg
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Inishev
Posts: 18
Joined: 2015/06/19 13:23:26

Re: Centos 7 kickstart copy from iso

Post by Inishev » 2018/10/22 15:25:16

yes i know
i need full automatically installation, i think i can do this use custom kickstart.
is it true?

Inishev
Posts: 18
Joined: 2015/06/19 13:23:26

Re: Centos 7 kickstart copy from iso

Post by Inishev » 2018/10/23 13:26:30

yes i found solution
You can put your files into iso into folder (ex. scripts) (you can locate this folder into root iso)
and in kickstart file you can run command (ex. cp -r /run/install/repo/scripts/test.sh /mnt/sysimage/... ) (... - it's / directory in future system)

Post Reply