mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-26 04:53:10 +00:00
fix missing /run/lock in docker base image BZ#1343138
Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
This commit is contained in:
parent
63bc5b44b7
commit
96a6711bb7
@ -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
|
# To keep this image minimal it only installs English language. You need to change
|
||||||
# yum configuration in order to enable other languages.
|
# 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:
|
# 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
|
# https://git.fedorahosted.org/cgit/fedora-atomic.git/tree/fedora-atomic-rawhide.tdl
|
||||||
#
|
#
|
||||||
# Then, once you have imagefactory and imagefactory-plugins installed, run:
|
# 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
|
# 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
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -83,6 +83,10 @@ rm -f /tmp/ks-script*
|
|||||||
#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
|
||||||
|
|
||||||
|
# Fix /run/lock breakage since it's not tmpfs in docker
|
||||||
|
umount /run
|
||||||
|
systemd-tmpfiles --create --boot
|
||||||
|
|
||||||
rm -f /etc/machine-id
|
rm -f /etc/machine-id
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user