diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-10-31 15:09:29 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2016-11-11 17:36:41 +0900 |
commit | ec458e22d52b15458636a1f550e55e92a4fee962 (patch) | |
tree | 3110b91a6d09d0b5663f6c3542cbc7ed18bb8cd4 /gnome/strata/gnome/gdm.morph | |
parent | 459ce0756d6c359204026f147dd1443bdc0f8928 (diff) | |
download | definitions-ec458e22d52b15458636a1f550e55e92a4fee962.tar.gz |
Move gnome systems, clusters and strata into gnome subdirectory
Change-Id: I44b4df44b0b144a09977a009595124b4d04128c6
Diffstat (limited to 'gnome/strata/gnome/gdm.morph')
-rw-r--r-- | gnome/strata/gnome/gdm.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnome/strata/gnome/gdm.morph b/gnome/strata/gnome/gdm.morph new file mode 100644 index 00000000..73081766 --- /dev/null +++ b/gnome/strata/gnome/gdm.morph @@ -0,0 +1,24 @@ +name: gdm +kind: chunk +build-system: autotools +configure-commands: +- | + # GDM includes a few stock PAM configurations, we choose the LFS flavor + # because of it's simplicity over the others, also it does not require + # selinux modules, however we neet to tweak the config a little after install. + ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --localstatedir=/var \ + --with-selinux=no --with-plymouth=no \ + --enable-gdm-xsession --with-x --with-default-pam-config=lfs +post-install-commands: +# Instead of following LFS PAM config to the letter, we redirect the includes +# to use the systemd installed all purpose 'system-auth' file +- sed -i 's/system-account/system-auth/g' "$DESTDIR"/etc/pam.d/gdm* +- sed -i 's/system-password/system-auth/g' "$DESTDIR"/etc/pam.d/gdm* +- sed -i 's/system-session/system-auth/g' "$DESTDIR"/etc/pam.d/gdm* +system-integration: + gdm-misc: + 00-add-gdm-user: + - groupadd -g 21 gdm + - useradd -rM -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 -g gdm -s /bin/false gdm + 00-enable-gdm-unit: + - systemctl enable gdm |