summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-08-07 16:12:42 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-08-07 16:12:42 +0100
commit6b098dc017a69cac78a4f56c497c717cb72e4508 (patch)
tree0c324d77a49219ddd53a73ef080ed6db05d6f849
parent42db0af4dfac231d1d011e830e5451a1236580a7 (diff)
enable systemservices at iso creation
-rwxr-xr-xlibkvasile6
-rwxr-xr-xmakeiso4
2 files changed, 10 insertions, 0 deletions
diff --git a/libkvasile b/libkvasile
index 73ea8d7..c2e496e 100755
--- a/libkvasile
+++ b/libkvasile
@@ -184,6 +184,12 @@ isochainload () {
chroot "$isosyncdir" su - "$isouser" -c "$isochainloadcmd"
}
+isoservices () {
+ for service in cups kogaionlive lightdm NetworkManager virtualbox-guest-additions ; do
+ chroot "$isosyncdir" su - "$isouser" -c "systemctl enable "$service""
+ done
+}
+
isochroot () {
echo -e ""
echo -e "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT"
diff --git a/makeiso b/makeiso
index fdf993b..0c7b8f9 100755
--- a/makeiso
+++ b/makeiso
@@ -55,6 +55,10 @@ prepareiso () {
isousertree
isochroot
isostop
+ # enable system services
+ isostart
+ isoservices
+ isostop
# unmount rootfs before compression
umount -l "$isosyncdir" > /dev/null 2>&1
# move rootfs in place