1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-29 02:13:09 +00:00

fedora-docker-base: adjust dbus.service to run in a container, mask some units to get rid of fails in boot transaction

This commit is contained in:
Vaclav Pavlin 2015-01-21 10:17:49 +01:00
parent 7c09012288
commit 20a9971686

View File

@ -52,4 +52,12 @@ localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
rm -rf /var/cache/yum/* rm -rf /var/cache/yum/*
rm -f /tmp/ks-script* rm -f /tmp/ks-script*
#Make it easier for systemd to run in Docker container
cp /usr/lib/systemd/system/dbus.service /etc/systemd/system/
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
%end %end