2019-01-03 15:52:05 +01:00
|
|
|
# See fedora-container-common.ks for details on how to hack on container image kickstarts
|
2017-03-23 17:40:57 +00:00
|
|
|
# This base is a standard Fedora image with python3 and dnf
|
2014-07-29 14:30:03 +02:00
|
|
|
|
2019-01-03 15:52:05 +01:00
|
|
|
%include fedora-container-common.ks
|
2014-07-29 14:30:03 +02:00
|
|
|
|
|
|
|
%packages --excludedocs --instLangs=en --nocore
|
2015-01-12 12:42:18 +01:00
|
|
|
rootfiles
|
2018-04-04 11:25:10 -04:00
|
|
|
# https://communityblog.fedoraproject.org/modularity-dead-long-live-modularity/
|
|
|
|
fedora-repos-modular
|
2017-03-23 17:40:57 +00:00
|
|
|
tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920
|
2014-07-29 14:30:03 +02:00
|
|
|
vim-minimal
|
2015-03-07 11:12:24 -06:00
|
|
|
dnf
|
2015-03-25 15:33:35 -04:00
|
|
|
dnf-yum # https://fedorahosted.org/fesco/ticket/1312#comment:29
|
2015-10-30 15:06:48 +01:00
|
|
|
sssd-client
|
2014-07-29 14:30:03 +02:00
|
|
|
|
|
|
|
%end
|
|
|
|
|
2017-01-19 14:19:24 -05:00
|
|
|
%post --erroronfail --log=/root/anaconda-post.log
|
2017-01-19 14:32:47 -05:00
|
|
|
# remove some extraneous files
|
|
|
|
rm -rf /var/cache/dnf/*
|
|
|
|
rm -rf /tmp/*
|
2014-07-29 14:30:03 +02:00
|
|
|
|
2017-08-01 13:04:42 +02:00
|
|
|
# https://pagure.io/atomic-wg/issue/308
|
|
|
|
printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf
|
|
|
|
|
2018-05-11 21:34:21 +03:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1576993
|
|
|
|
systemctl disable dnf-makecache.timer
|
|
|
|
|
2015-01-21 10:17:49 +01:00
|
|
|
#Mask mount units and getty service so that we don't get login prompt
|
|
|
|
systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service
|
|
|
|
|
2017-01-19 15:31:38 -05:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
|
2016-07-22 15:26:49 -05:00
|
|
|
# Fix /run/lock breakage since it's not tmpfs in docker
|
2017-01-19 15:31:38 -05:00
|
|
|
# This unmounts /run (tmpfs) and then recreates the files
|
|
|
|
# in the /run directory on the root filesystem of the container
|
2017-05-19 09:40:49 -04:00
|
|
|
#
|
|
|
|
# We ignore the return code of the systemd-tmpfiles command because
|
|
|
|
# at this point we have already removed the /etc/machine-id and all
|
|
|
|
# tmpfiles lines with %m in them will fail and cause a bad return
|
|
|
|
# code. Example failure:
|
|
|
|
# [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
|
|
|
|
#
|
2016-07-22 15:26:49 -05:00
|
|
|
umount /run
|
2017-05-19 09:40:49 -04:00
|
|
|
systemd-tmpfiles --prefix=/run/ --prefix=/var/run/ --create --boot || true
|
2017-08-11 09:11:36 -04:00
|
|
|
rm /run/nologin # https://pagure.io/atomic-wg/issue/316
|
2016-07-22 15:26:49 -05:00
|
|
|
|
2014-07-29 14:30:03 +02:00
|
|
|
%end
|