Update stage3/02-setup-system/00-run.sh
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
# polkit fixes
|
# Create required directorys and profiles for dconf
|
||||||
install -m 644 files/polkit-admin.conf "${ROOTFS_DIR}/etc/polkit-1/localauthority.conf.d/51-admin.conf"
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
|
||||||
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
|
||||||
# Include custom vendor file for gnome-inital-setup
|
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/gnome-initial-setup.d"
|
||||||
mkdir -p "${ROOTFS_DIR}/usr/share/gnome-initial-setup/"
|
install -m 644 files/dconf-profile "${ROOTFS_DIR}/etc/dconf/profile/user"
|
||||||
install -m 644 files/vendor.conf "${ROOTFS_DIR}/usr/share/gnome-initial-setup/"
|
install -m 644 files/dconf-profile-initial-setup "${ROOTFS_DIR}/etc/dconf/profile/gnome-initial-setup"
|
||||||
|
|
||||||
# Configure default GDM3 Session to Xorg
|
# Configure default GDM3 Session to Xorg
|
||||||
mkdir -p "${ROOTFS_DIR}/var/lib/gdm"
|
mkdir -p "${ROOTFS_DIR}/var/lib/gdm"
|
||||||
@@ -14,25 +14,30 @@ sed -i 's/#WaylandEnable=false/WaylandEnable=false/' /etc/gdm3/daemon.conf
|
|||||||
touch /var/lib/gdm/run-initial-setup
|
touch /var/lib/gdm/run-initial-setup
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create required directorys for dconf
|
# polkit fixes
|
||||||
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
|
install -m 644 files/polkit-admin.conf "${ROOTFS_DIR}/etc/polkit-1/localauthority.conf.d/51-admin.conf"
|
||||||
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
|
|
||||||
install -m 644 files/dconf-profile "${ROOTFS_DIR}/etc/dconf/profile/user"
|
# 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
|
# Set default gnome-extensions
|
||||||
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
|
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
|
||||||
|
|
||||||
# Set default Wallpaper
|
# Install wallpapers
|
||||||
mkdir -p "${ROOTFS_DIR}/usr/local/share/backgrounds"
|
mkdir -p "${ROOTFS_DIR}/usr/local/share/backgrounds"
|
||||||
install -m 644 files/loveimage.png "${ROOTFS_DIR}/usr/local/share/backgrounds/loveimage.png"
|
install -m 644 files/loveimage.png "${ROOTFS_DIR}/usr/local/share/backgrounds/loveimage.png"
|
||||||
install -m 644 files/neon-forest.png "${ROOTFS_DIR}/usr/local/share/backgrounds/neon-forest.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 "${ROOTFS_DIR}/etc/dconf/db/gnome-initial-setup.d/00-default-settings"
|
||||||
|
|
||||||
# Set default gnome settings
|
# Set default gnome settings
|
||||||
install -m 644 files/gnome-default-settings "${ROOTFS_DIR}/etc/dconf/db/local.d/00-default-settings"
|
install -m 644 files/gnome-default-settings "${ROOTFS_DIR}/etc/dconf/db/local.d/00-default-settings"
|
||||||
|
|
||||||
# Run the dconf update as the first user
|
# Update all dconf databases
|
||||||
on_chroot << EOF
|
on_chroot << EOF
|
||||||
SUDO_USER="${FIRST_USER_NAME}" dconf update
|
dconf update
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Remove setup user (only if it's not a system account)
|
# Remove setup user (only if it's not a system account)
|
||||||
|
Reference in New Issue
Block a user