[SeatDefaults]
-greeter-session=lightdm-webkit2-greeter
\ No newline at end of file
+greeter-session=lightdm-webkit2-greeter
+
+[Seat:*]
+autologin-guest=false
+autologin-user=%USERNAME%
+autologin-user-timeout=0
\ No newline at end of file
# customize_airootfs_serene.sh
#
-echo "customize_airootfs.sh has been executed."
\ No newline at end of file
+set -e -u
+
+# Default value
+# All values can be changed by arguments.
+password="liveuser"
+username="liveuser"
+usershell="/bin/bash"
+debug=true
+
+
+# Parse arguments
+while getopts 'p:bt:k:rxju:o:i:s:da:' arg; do
+ case "${arg}" in
+ p) password="${OPTARG}" ;;
+ u) username="${OPTARG}" ;;
+ s) usershell="${OPTARG}" ;;
+ d) debug=true ;;
+ x) debug=true; set -xv ;;
+ a) arch="${OPTARG}"
+ esac
+done
+
+# Enable LightDM to auto login
+systemctl enable lightdm.service
+
+# Replace auto login user
+sed -i s/%USERNAME%/${username}/g /etc/lightdm/lightdm.conf
\ No newline at end of file
run_cmd "${2}" "${_customize_siript_options}"
fi
}
+
run_customize_script "${work_dir}/airootfs/root/customize_airootfs.sh" "/root/customize_airootfs.sh"
run_customize_script "${work_dir}/airootfs/root/customize_airootfs_${channel_name}.sh" "/root/customize_airootfs_${channel_name}.sh"
}