docker-min: fix /run/lock without legacy.conf or systemd-tmpfiles

This commit is contained in:
Dusty Mabe 2017-01-19 22:24:41 -05:00
parent 1efe347bcb
commit ac2953ec38
No known key found for this signature in database
GPG Key ID: 3302DBD73952E671
1 changed files with 5 additions and 1 deletions

View File

@ -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