@@ -56,6 +56,32 @@
chkconfig splash_early off
systemctl enable image-installer.service
+cat > /etc/systemd/system/after-local.service << EOF
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=/etc/init.d/after.local Compatibility
+ConditionFileIsExecutable=/etc/init.d/after.local
+
+[Service]
+Type=oneshot
+ExecStart=/etc/init.d/after.local
+TimeoutSec=0
+StandardOutput=tty
+RemainAfterExit=yes
+SysVStartPriority=99
+
+[Install]
+WantedBy=multi-user.target
+EOF
+systemctl enable after-local.service
+echo "chvt 12" >> /etc/init.d/after.local
+
chown root:root /build-custom
chmod 755 /build-custom
# run custom build_script after build
|