From dfde53409893754a749e390bb63b8b110211ceac Mon Sep 17 00:00:00 2001 From: Adam Miller Date: Fri, 22 Jul 2016 15:26:49 -0500 Subject: [PATCH] fix missing /run/lock in docker base image BZ#1343138 Signed-off-by: Adam Miller --- fedora-docker-base.ks | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fedora-docker-base.ks b/fedora-docker-base.ks index 32feecb..f6b3b96 100644 --- a/fedora-docker-base.ks +++ b/fedora-docker-base.ks @@ -1,4 +1,4 @@ -# This is a minimal Fedora install designed to serve as a Docker base image. +# 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. @@ -9,9 +9,9 @@ # # To do so, testing local changes, first you'll need a TDL file. I store one here: # https://git.fedorahosted.org/cgit/fedora-atomic.git/tree/fedora-atomic-rawhide.tdl -# +# # Then, once you have imagefactory and imagefactory-plugins installed, run: -# +# # imagefactory --debug target_image --template /path/to/fedora-atomic-rawhide.tdl --parameter offline_icicle true --file-parameter install_script $(pwd)/fedora-docker-base.ks docker # @@ -76,6 +76,10 @@ sed -i 's/OOMScoreAdjust=-900//' /etc/systemd/system/dbus.service #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 +# Fix /run/lock breakage since it's not tmpfs in docker +umount /run +systemd-tmpfiles --create --boot + rm -f /etc/machine-id %end