From bfc2abc3d1ee4cfa9aee48b61387e15f36aabdbc Mon Sep 17 00:00:00 2001 From: Lukas Date: Mon, 24 Jan 2022 20:04:32 +0100 Subject: [PATCH] new ingredients for quirks related to live image --- ingredients/base-live-desktop-quirks.cfg | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ingredients/base-live-desktop-quirks.cfg diff --git a/ingredients/base-live-desktop-quirks.cfg b/ingredients/base-live-desktop-quirks.cfg new file mode 100644 index 0000000..76fa998 --- /dev/null +++ b/ingredients/base-live-desktop-quirks.cfg @@ -0,0 +1,25 @@ +# __ ____ ____ _____ +# ____ / /_ __ __/ / /___ ____ ___ ___ / __ \/ ___/ +# / __ \/ __ \/ / / / / / __ \/ __ `__ \/ _ \ / / / /\__ \ +# / /_/ / / / / /_/ / / / /_/ / / / / / / __/ / /_/ /___/ / +# / .___/_/ /_/\__, /_/_/\____/_/ /_/ /_/\___/ \____//____/ +# /_/ /____/ + +%post --log=/opt/live-desktop-quirks.log # Beginning of %post section. The following commands are executed inside a chroot environment. Add logging + +cat >> /etc/rc.d/init.d/livesys << EOF + +# set up auto-login +cat > /etc/gdm/custom.conf << FOE +[daemon] +AutomaticLoginEnable=True +AutomaticLogin=liveuser +FOE + +# Make sure to set the right permissions and selinux contexts +chown -R liveuser:liveuser /home/liveuser/ +restorecon -R /home/liveuser/ + +EOF + +%end # End of the %post section \ No newline at end of file