mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
mkosi: Always disable sshd, dnsmasq and isc-dhcp-server
This commit is contained in:
parent
5739271000
commit
23603bc67f
@ -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
|
||||
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
|
||||
sed -n \
|
||||
-i \
|
||||
|
Loading…
Reference in New Issue
Block a user