Commit c2c01a82 authored by Anton Midyukov's avatar Anton Midyukov

deflogin: set LIVECD_SESSION=DEFAULT_SESSION in livecd-user.conf

parent 69547ae4
#!/bin/sh -efu
# setup settings for live user
[ -f /etc/sysconfig/livecd-user.conf ] || exit 0
livecd_user_conf=/etc/sysconfig/livecd-user.conf
[ -f "$livecd_user_conf" ] || exit 0
cat > /etc/sysconfig/livecd-user.conf << EOF
LIVECD_LOGIN="${GLOBAL_LIVE_USER:-}"
......@@ -9,3 +11,6 @@ LIVECD_GROUPS="${GLOBAL_GROUPS:-}"
LIVECD_ADMIN=1
LIVECD_SUDO=1
EOF
[ -z "${GLOBAL_DEFAULT_SESSION:-}" ] ||
echo "LIVECD_SESSION=$GLOBAL_DEFAULT_SESSION" >> "$livecd_user_conf"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment