Add kickstart for gw0
parent
66fd6c8d3d
commit
f6e1711d20
|
@ -0,0 +1,76 @@
|
||||||
|
# vim: set ft=sh :
|
||||||
|
|
||||||
|
text
|
||||||
|
install
|
||||||
|
url --url http://download-ib01.fedoraproject.org/pub/fedora/linux/releases/27/Everything/x86_64/os/
|
||||||
|
repo --name=updates --baseurl=http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/27/x86_64/
|
||||||
|
repo --name=dhcpcd-local-selinux --baseurl=http://rosalina.pyrocufflink.jazz/~dustin/dhcpcd-local-selinux
|
||||||
|
lang en_US.UTF-8
|
||||||
|
keyboard us
|
||||||
|
timezone --utc UTC
|
||||||
|
rootpw --lock
|
||||||
|
reboot
|
||||||
|
|
||||||
|
user --name dustin --groups wheel --iscrypted --password $6$rNFdtHLiYs1wcvMf$gOKMKUoyKr1fx0quCJqxAIWgnXgJeNKizKiCKDQJXyM0IKfDgrFzBFBuSHrdQMo5sLxJKFL1u2AD.lInhHRZp.
|
||||||
|
|
||||||
|
bootloader --location mbr --append "console=ttyS0,115200 quiet systemd.show_status=1"
|
||||||
|
clearpart --all --initlabel
|
||||||
|
reqpart
|
||||||
|
part /boot --fstype ext4 --size=200
|
||||||
|
part none --fstype swap --recommended
|
||||||
|
part pv.01 --size=1 --grow
|
||||||
|
volgroup gw0 pv.01
|
||||||
|
logvol / --fstype ext4 --name=root --vgname=gw0 --size=4096
|
||||||
|
logvol /home --fstype ext4 --name=home --vgname=gw0 --size=1024
|
||||||
|
logvol /var --fstype ext4 --name=var --vgname=gw0 --size=4096
|
||||||
|
logvol /var/log --fstype ext4 --name=var_log --vgname=gw0 --size=2048
|
||||||
|
logvol /tmp --fstype ext4 --name=tmp --vgname=gw0 --size=1024
|
||||||
|
|
||||||
|
%packages --nocore --excludeWeakdeps --excludedocs
|
||||||
|
audit
|
||||||
|
chrony
|
||||||
|
dhcpcd
|
||||||
|
dhcpcd-local-selinux
|
||||||
|
dnf
|
||||||
|
grubby
|
||||||
|
initscripts
|
||||||
|
less
|
||||||
|
libselinux-python3
|
||||||
|
linux-firmware
|
||||||
|
openssh-server
|
||||||
|
passwd
|
||||||
|
policycoreutils-python3
|
||||||
|
selinux-policy-targeted
|
||||||
|
sudo
|
||||||
|
%end
|
||||||
|
|
||||||
|
services --enabled dhcpcd
|
||||||
|
|
||||||
|
%addon com_redhat_kdump --disable
|
||||||
|
%end
|
||||||
|
|
||||||
|
%post --erroronfail
|
||||||
|
echo gw0.pyrocufflink.blue > /etc/hostname
|
||||||
|
|
||||||
|
dnf makecache
|
||||||
|
|
||||||
|
echo 'install_weak_deps=0' >> /etc/dnf/dnf.conf
|
||||||
|
echo '%_excludedocs 1' >> /etc/rpm/macros
|
||||||
|
|
||||||
|
/usr/libexec/openssh/sshd-keygen ecdsa
|
||||||
|
/usr/libexec/openssh/sshd-keygen ed25519
|
||||||
|
/usr/libexec/openssh/sshd-keygen rsa
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e '/pam_pwquality/d' \
|
||||||
|
-e '/^password.*pam_unix/s/use_authtok \?//' \
|
||||||
|
/etc/pam.d/system-auth \
|
||||||
|
/etc/pam.d/password-auth
|
||||||
|
|
||||||
|
ln -sf /var/lib/dhcpcd/dhcpcd.duid /etc/dhcpcd.duid
|
||||||
|
ln -sf /var/lib/dhcpcd/dhcpcd.secret /etc/dhcpcd.secret
|
||||||
|
|
||||||
|
ln -sf /run/resolv.conf /etc/resolv.conf
|
||||||
|
|
||||||
|
sed -i -r '/\S+\s+\/\s+/s/defaults/ro/' /etc/fstab
|
||||||
|
%end
|
Loading…
Reference in New Issue