diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-08-07 16:12:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-08-07 16:12:42 +0100 |
commit | 6b098dc017a69cac78a4f56c497c717cb72e4508 (patch) | |
tree | 0c324d77a49219ddd53a73ef080ed6db05d6f849 | |
parent | 42db0af4dfac231d1d011e830e5451a1236580a7 (diff) |
enable systemservices at iso creation
-rwxr-xr-x | libkvasile | 6 | ||||
-rwxr-xr-x | makeiso | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -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" @@ -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 |