1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-12-26 04:53:10 +00:00

docker: add some more comments to %post script

Putting in references to BZ's so that we can determine if we can
remove these pieces of the %post in the future.
This commit is contained in:
Dusty Mabe 2017-01-19 15:31:38 -05:00
parent 12bbaac8dd
commit 28a845d586
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671

View File

@ -50,6 +50,7 @@ set -eux
LANG="en_US"
echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
# https://bugzilla.redhat.com/show_bug.cgi?id=1400682
echo "Import RPM GPG key"
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
basearch=$(uname -i)
@ -64,7 +65,10 @@ rm -rf /tmp/*
#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
# https://bugzilla.redhat.com/show_bug.cgi?id=1343138
# Fix /run/lock breakage since it's not tmpfs in docker
# This unmounts /run (tmpfs) and then recreates the files
# in the /run directory on the root filesystem of the container
umount /run
systemd-tmpfiles --create --boot