From ac2953ec386fc54c465b5bb0695a5c2c3278fada Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Thu, 19 Jan 2017 22:24:41 -0500 Subject: [PATCH] docker-min: fix /run/lock without legacy.conf or systemd-tmpfiles --- fedora-docker-base-minimal.ks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fedora-docker-base-minimal.ks b/fedora-docker-base-minimal.ks index 7ee16ba..4572ddd 100644 --- a/fedora-docker-base-minimal.ks +++ b/fedora-docker-base-minimal.ks @@ -61,7 +61,11 @@ rm -rf /tmp/* # 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 +# The file that specifies the /run/lock tmpfile is +# /usr/lib/tmpfiles.d/legacy.conf, which is part of the systemd +# rpm that isn't included in this image. We'll create the /run/lock +# file here manually with the settings from legacy.conf +install -d /run/lock -m 0755 -o root -g root # Remove machine-id on pre generated images rm -f /etc/machine-id