added default anaconda ks, changed normal kickstart
This commit is contained in:
parent
d61c609db6
commit
b48a4d97fe
2 changed files with 62 additions and 10 deletions
21
kickstart.ks
21
kickstart.ks
|
|
@ -2,22 +2,22 @@
|
|||
install
|
||||
text
|
||||
lang en_US.UTF-8
|
||||
keyboard us
|
||||
keyboard --vckeymap=us --xlayouts='us'
|
||||
timezone Europe/Amsterdam --isUtc
|
||||
auth --useshadow --passalgo=sha256
|
||||
firewall --disabled
|
||||
services --enabled=sshd
|
||||
eula --agreed
|
||||
|
||||
ignoredisk --only-use=sda
|
||||
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
|
||||
autopart --type=lvm
|
||||
# Partition clearing information
|
||||
clearpart --none --initlabel
|
||||
|
||||
|
||||
%pre
|
||||
#!/bin/bash
|
||||
DISK=$(lsblk --output NAME,TYPE | grep disk | head -n1 | cut -d" " -f1)
|
||||
cat > /tmp/setup << EOF
|
||||
clearpart --all --initlabel
|
||||
bootloader --location=mbr --boot-drive=$DISK
|
||||
zerombr
|
||||
autopart
|
||||
EOF
|
||||
|
||||
NET_CFG=$(grep -oE 'net_cfg=#.*#' < /proc/cmdline)
|
||||
HOST_NAME=${HOST_NAME##*=}
|
||||
|
|
@ -41,8 +41,6 @@ else
|
|||
fi
|
||||
%end
|
||||
|
||||
%include /tmp/setup
|
||||
|
||||
rootpw $1$ShWUmTPa$n1yOej8jz.ZuOpaFNC2Vt0 --iscrypted
|
||||
|
||||
## repos
|
||||
|
|
@ -54,7 +52,10 @@ repo --name=epel --baseurl=https://dl.fedoraproject.org/pub/epel/7/x86_64/
|
|||
url --url="http://mirror.neostrada.nl/centos/7/os/x86_64/"
|
||||
|
||||
%packages
|
||||
@^minimal
|
||||
@core
|
||||
chrony
|
||||
kexec-tools
|
||||
bash-completion
|
||||
epel-release
|
||||
deltarpm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue