[Lunar-commits] <lunar-iso> Disable sshd on the livecd

Stefan Wold ratler at lunar-linux.org
Thu Nov 28 23:33:12 CET 2013


commit b6d881e7ea9a085b9029eaba263c0fcf29df0f22
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Thu, 28 Nov 2013 14:32:27 -0800
URL: https://github.com/lunar-linux/lunar-iso/commit/b6d881e7ea9a085b9029eaba263c0fcf29df0f22

Disable sshd on the livecd
---
  mkfiles/iso.mk | +3/-0     
  1 file changed, 3 insertions(+)

--- a/mkfiles/iso.mk
+++ b/mkfiles/iso.mk
@@ -39,6 +39,9 @@ $(ISO_TARGET)/etc/%: $(ISO_SOURCE)/livecd/template/etc/% iso-modules
 $(ISO_TARGET)/.iso-files: iso-target
 	@echo iso-files
 	@rm -f $(ISO_TARGET)/etc/dracut.conf.d/02-lunar-live.conf $(ISO_TARGET)/etc/ssh/ssh_host_*
+	@for unit in sockets.target.wants/sshd.socket multi-user.target.wants/sshd.service multi-user.target.wants/sshd-keys.service ; do \
+	  rm -f $(ISO_TARGET)/etc/systemd/system/$$unit ; \
+	done
 	@[ ! -d $(ISO_TARGET)/etc/dracut.conf.d ] || rmdir --ignore-fail-on-non-empty $(ISO_TARGET)/etc/dracut.conf.d
 	@cp -r $(ISO_SOURCE)/livecd/template/etc/systemd $(ISO_TARGET)/etc
 	@> $(ISO_TARGET)/etc/machine-id




More information about the Lunar-commits mailing list