mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +03:00
mkosi: Always disable sshd, dnsmasq and isc-dhcp-server
This commit is contained in:
@ -0,0 +1,6 @@
|
|||||||
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||||
|
disable ssh.service
|
||||||
|
disable sshd.service
|
||||||
|
disable dnsmasq.service
|
||||||
|
disable isc-dhcp-server.service
|
||||||
|
disable isc-dhcp-server6.service
|
@ -47,11 +47,6 @@ EOF
|
|||||||
systemctl mask systemd-hwdb-update.service
|
systemctl mask systemd-hwdb-update.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure dnsmasq doesn't start on boot on Debian/Ubuntu.
|
|
||||||
systemctl disable dnsmasq
|
|
||||||
# Make sure sshd doesn't start on Opensuse.
|
|
||||||
echo "disable sshd.service" > /usr/lib/systemd/system-preset/00-mkosi.preset
|
|
||||||
|
|
||||||
if [ -n "$IMAGE_ID" ] ; then
|
if [ -n "$IMAGE_ID" ] ; then
|
||||||
sed -n \
|
sed -n \
|
||||||
-i \
|
-i \
|
||||||
|
Reference in New Issue
Block a user