mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-27 05:23:08 +00:00
9f254062c3
This is pretty cosmetic as live and cloud images don't use passwords and they install with sha512 fine, but some people may use these kickstarts as a base for their spins, so we should use best practices.
70 lines
1.4 KiB
Plaintext
70 lines
1.4 KiB
Plaintext
lang en_US.UTF-8
|
|
#keyboard us
|
|
auth --useshadow --passalgo=sha512
|
|
selinux --enforcing
|
|
firewall --enabled --service=mdns,ssh
|
|
|
|
# configure extlinux bootloader
|
|
bootloader extlinux
|
|
|
|
part /boot --size=300 --fstype ext3
|
|
part swap --size=512 --fstype swap
|
|
part / --size=3000 --fstype ext4
|
|
|
|
# make sure that initial-setup runs and lets us do all the configuration bits
|
|
firstboot --reconfig
|
|
|
|
services --enabled=ssh,NetworkManager,avahi-daemon,rsyslog,chronyd --disabled=network
|
|
|
|
%include fedora-repo.ks
|
|
|
|
%packages
|
|
@core
|
|
@standard
|
|
@hardware-support
|
|
@dial-up
|
|
|
|
kernel
|
|
|
|
dracut-config-generic
|
|
|
|
chrony
|
|
arm-boot-config
|
|
extlinux-bootloader
|
|
initial-setup
|
|
initial-setup-gui
|
|
#lets resize / on first boot
|
|
# dracut-modules-growroot
|
|
|
|
# remove this in %post
|
|
dracut-config-generic
|
|
|
|
# install uboot images
|
|
uboot-images-armv7
|
|
|
|
%end
|
|
|
|
%post
|
|
|
|
# work around for poor key import UI in PackageKit
|
|
rm -f /var/lib/rpm/__db*
|
|
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
|
basearch=armhfp
|
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
|
|
echo "Packages within this ARM disk image"
|
|
rpm -qa
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
rm -f /var/lib/rpm/__db*
|
|
|
|
# Because memory is scarce resource in most arm systems we are differing from the Fedora
|
|
# default of having /tmp on tmpfs.
|
|
echo "Disabling tmpfs for /tmp."
|
|
systemctl mask tmp.mount
|
|
|
|
/usr/sbin/a-b-c
|
|
|
|
yum -y remove dracut-config-generic
|
|
|
|
%end
|
|
|