mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-02 15:10:26 +02:00
🚧 generate gdm config
This commit is contained in:
1 file changed
+25
+25
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user