Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17852

Can't get an %include in Kickstart to work. Centos 6.6 minimal. ANY help would be GREATLY appreciated.

$
0
0

I have been killing myself trying to get my kickstart file to include a file I am trying to write to /tmp in my %pre statement. Everytime I run it, I get an "unable to open input kickstart file" error. Here is my kickstart file:

install cdrom lang en_US.UTF-8 keyboard us network --onboot yes --device eth0 --bootproto dhcp --gateway 192.168.200.75 --noipv6 --nameserver 192.168.200.103,192.168.200.104 rootpw <redacted> firewall --service=ssh authconfig --enableshadow --passalgo=sha512 selinux --enforcing timezone --utc America/New_York ### eject virtual install media @ reboot reboot --eject %include /tmp/hostname.ks ### set up the partitions, dynamically. clearpart --linux --drives=sda part /boot --fstype=ext4 --size=500 part pv.008002 --grow --size=1 volgroup vg_sandbox --pesize=4096 pv.008002 logvol /var/log/audit --fstype=ext4 --name=lv_audit --vgname=vg_sandbox --grow --size=1 --percent=5 logvol /home --fstype=ext4 --name=lv_home --vgname=vg_sandbox --grow --size=1 --percent=10 logvol / --fstype=ext4 --name=lv_root --vgname=vg_sandbox --grow --size=1 --percent=24 logvol swap --recommended --fstype=swap --name=lv_swap --vgname=vg_sandbox logvol /tmp --fstype=ext4 --name=lv_tmp --vgname=vg_sandbox --grow --size=1 --percent=5 logvol /var --fstype=ext4 --name=lv_var --vgname=vg_sandbox --grow --size=1 --percent=40 logvol /var/log --fstype=ext4 --name=lv_varlog --vgname=vg_sandbox --grow --size=1 --percent=5 %packages --nobase @core %end %post --log=/root/my-ks-log echo "Getting the install scripts." /usr/bin/curl -R -o /root/sandbox.tar.gz http://my.server.com/sandbox.tar.gz echo "Finished." %end %pre echo "network --hostname=$(echo centos-$RANDOM)" > /tmp/hostname.ks %end 
submitted by da_invitator
[link][6 comments]

Viewing all articles
Browse latest Browse all 17852

Trending Articles