[Lunar-commits] <lunar-iso> Remove unwanted services from the livecd

Stefan Wold ratler at lunar-linux.org
Sun Jan 12 18:32:46 CET 2014


commit 02e84efb8c076467eeb07b289798e479c7aae11a
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun, 12 Jan 2014 09:29:17 -0800
URL: https://github.com/lunar-linux/lunar-iso/commit/02e84efb8c076467eeb07b289798e479c7aae11a

Remove unwanted services from 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