2014-07-29 12:30:03 +00:00
|
|
|
# This is a minimal Fedora install designed to serve as a Docker base image.
|
|
|
|
#
|
|
|
|
# To keep this image minimal it only installs English language. You need to change
|
|
|
|
# yum configuration in order to enable other languages.
|
|
|
|
|
2014-09-03 17:19:25 +00:00
|
|
|
cmdline
|
2014-07-30 07:23:41 +00:00
|
|
|
bootloader --location=none
|
2014-07-29 12:30:03 +00:00
|
|
|
timezone America/New_York --isUtc --nontp
|
|
|
|
rootpw --plaintext qweqwe
|
|
|
|
|
|
|
|
keyboard us
|
|
|
|
firewall --disable
|
|
|
|
zerombr
|
|
|
|
clearpart --all
|
2014-07-30 07:23:41 +00:00
|
|
|
part / --size 3000 --fstype ext4
|
2014-08-20 15:46:56 +00:00
|
|
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
2014-07-29 12:30:03 +00:00
|
|
|
reboot
|
|
|
|
|
|
|
|
%packages --excludedocs --instLangs=en --nocore
|
|
|
|
bash
|
|
|
|
fedora-release
|
|
|
|
vim-minimal
|
|
|
|
yum
|
2014-09-01 15:28:54 +00:00
|
|
|
fakesystemd
|
2014-07-29 12:30:03 +00:00
|
|
|
-kernel
|
|
|
|
|
|
|
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
%post --log=/tmp/anaconda-post.log
|
|
|
|
# Set the language rpm nodocs transaction flag persistently in the
|
|
|
|
# image yum.conf and rpm macros
|
|
|
|
|
|
|
|
LANG="en_US"
|
|
|
|
echo "%_install_lang $LANG" > /etc/rpm/macros.image-language-conf
|
|
|
|
|
|
|
|
awk '(NF==0&&!done){print "override_install_langs='$LANG'\ntsflags=nodocs";done=1}{print}' \
|
|
|
|
< /etc/yum.conf > /etc/yum.conf.new
|
|
|
|
mv /etc/yum.conf.new /etc/yum.conf
|
|
|
|
|
|
|
|
echo "Import RPM GPG key"
|
|
|
|
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
|
|
|
basearch=$(uname -i)
|
|
|
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
|
|
|
|
|
|
|
|
rm -f /usr/lib/locale/locale-archive
|
|
|
|
rm -rf /var/cache/yum/*
|
|
|
|
rm -f /tmp/ks-script*
|
|
|
|
|
|
|
|
%end
|