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:
parent
12bbaac8dd
commit
28a845d586
@ -50,6 +50,7 @@ set -eux
|
|||||||
LANG="en_US"
|
LANG="en_US"
|
||||||
echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
|
echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
|
||||||
|
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1400682
|
||||||
echo "Import RPM GPG key"
|
echo "Import RPM GPG key"
|
||||||
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
|
||||||
basearch=$(uname -i)
|
basearch=$(uname -i)
|
||||||
@ -64,7 +65,10 @@ rm -rf /tmp/*
|
|||||||
#Mask mount units and getty service so that we don't get login prompt
|
#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
|
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
|
# 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
|
umount /run
|
||||||
systemd-tmpfiles --create --boot
|
systemd-tmpfiles --create --boot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user