48 lines
1.8 KiB
Bash
Executable File
48 lines
1.8 KiB
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Create required directorys and profiles for dconf
|
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
|
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
|
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/gnome-initial-setup.d"
|
|
install -m 644 files/dconf-profile "${ROOTFS_DIR}/etc/dconf/profile/user"
|
|
install -m 644 files/dconf-profile-initial-setup "${ROOTFS_DIR}/etc/dconf/profile/gnome-initial-setup"
|
|
|
|
# Enable Wayland in GDM (Xorg is not installed)
|
|
on_chroot << EOF
|
|
sed -i 's/.*WaylandEnable=.*/WaylandEnable=true/' /etc/gdm3/daemon.conf
|
|
EOF
|
|
|
|
# Enable GDM's Initial setup app
|
|
on_chroot << EOF
|
|
mkdir -p /var/lib/gdm
|
|
touch /var/lib/gdm/run-initial-setup
|
|
EOF
|
|
|
|
# polkit fixes (seems to be rpi only thing)
|
|
if [ "$PLATFORM" == "rpi" ]; then
|
|
install -m 644 files/polkit-admin.conf "${ROOTFS_DIR}/etc/polkit-1/localauthority.conf.d/51-admin.conf"
|
|
fi
|
|
|
|
# Include custom vendor file for gnome-inital-setup
|
|
mkdir -p "${ROOTFS_DIR}/usr/share/gnome-initial-setup/"
|
|
install -m 644 files/vendor.conf "${ROOTFS_DIR}/usr/share/gnome-initial-setup/"
|
|
|
|
# Set default gnome-extensions and thier respective settings
|
|
install -m 644 files/gnome-default-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
|
|
|
|
# Install wallpapers
|
|
#mkdir -p "${ROOTFS_DIR}/usr/local/share/backgrounds"
|
|
#install -m 644 files/first-time-setup.png "${ROOTFS_DIR}/usr/local/share/backgrounds/first-time-setup.png"
|
|
#install -m 644 files/neon-forest.png "${ROOTFS_DIR}/usr/local/share/backgrounds/neon-forest.png"
|
|
|
|
# Set default settings (gnome-initial-setup)
|
|
install -m 644 files/gnome-initial-setup-default-settings "${ROOTFS_DIR}/etc/dconf/db/gnome-initial-setup.d/00-default-settings"
|
|
|
|
# Set default settings (gnome)
|
|
install -m 644 files/gnome-default-settings "${ROOTFS_DIR}/etc/dconf/db/local.d/00-default-settings"
|
|
|
|
# Update all dconf databases
|
|
on_chroot << EOF
|
|
dconf update
|
|
EOF
|