🚧 generate gdm config

This commit is contained in:
Vladislav Nepogodin committed 2022-11-13 04:36:11 +04:00
1 parent c9a4012bf8
commit d6592f5bc2
1 file changed
+25
+25
View File
@@ -55,6 +55,29 @@ trap_exit() {
kill "-$sig" "$$" kill "-$sig" "$$"
} }
generate_gbm_config() {
mkdir -p ${src_dir}/archiso/airootfs/etc/gdm
cat << 'EOF' > ${src_dir}/archiso/airootfs/etc/gdm/custom.conf
# GDM configuration storage
[daemon]
AutomaticLoginEnable=True
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false
DefaultSession=gnome-xorg.desktop
[security]
[xdmcp]
[chooser]
[debug]
# Uncomment the line below to turn on debugging
#Enable=true
EOF
}
prepare_profile(){ prepare_profile(){
profile=$1 profile=$1
@@ -66,6 +89,8 @@ prepare_profile(){
ln -sf /usr/lib/systemd/system/sddm.service ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service ln -sf /usr/lib/systemd/system/sddm.service ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service
elif [ "$profile" == "gnome" ]; then elif [ "$profile" == "gnome" ]; then
rm -f ${src_dir}/archiso/airootfs/etc/motd rm -f ${src_dir}/archiso/airootfs/etc/motd
rm -rf ${src_dir}/archiso/airootfs/etc/gdm
generate_gbm_config
cp ${src_dir}/archiso/packages_gnome.x86_64 ${src_dir}/archiso/packages.x86_64 cp ${src_dir}/archiso/packages_gnome.x86_64 ${src_dir}/archiso/packages.x86_64
ln -sf /usr/lib/systemd/system/gdm.service ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service ln -sf /usr/lib/systemd/system/gdm.service ${src_dir}/archiso/airootfs/etc/systemd/system/display-manager.service
elif [ "$profile" == "xfce" ]; then elif [ "$profile" == "xfce" ]; then