-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathend_chroot_script
More file actions
executable file
·29 lines (22 loc) · 972 Bytes
/
Copy pathend_chroot_script
File metadata and controls
executable file
·29 lines (22 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# VlcOS generation script
########
set -x
set -e
source /common.sh
install_cleanup_trap
#set up gui service
sed -i 's/#user-session=.*/user-session=guisession/g' /etc/lightdm/lightdm.conf
# This is now down as a systemd service to handle username conf on boot
sed -i 's/#autologin-user=.*/autologin-user=UID_1000_PLACEHOLDER/g' /etc/lightdm/lightdm.conf
systemctl enable update_lightdm_conf.service
# cancel-rename overrides auto login see https://github.com/RPi-Distro/pi-gen/issues/780
if [ "${BASE_DISTRO}" == "raspbian" ] || [ "${BASE_DISTRO}" == "raspios64" ] || [ "${BASE_DISTRO}" == "raspios" ]; then
mkdir -p /var/lib/userconf-pi
touch /var/lib/userconf-pi/autologin
fi
# set the gui to run the main script of the GUI session
sed -i "s@GUI_SESSION_PLACEHOLDER@${GUI_STARTUP_SCRIPT}@g" /opt/custompios/scripts/start_gui
# Set the boot target to use a gui
systemctl set-default graphical.target
rm -r /usr/sbin/policy-rc.d || true