diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-10-13 18:24:55 +0900 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-10-14 11:56:35 +0000 |
commit | d2d8f005877468e49a9f4254ee96912ee2344a4a (patch) | |
tree | 7f689ccebd9c2c747e07febfaca4b4987b30fae0 /strata/gnome | |
parent | 68a697bc273548fa512f75a7d9904e42f75bfa83 (diff) | |
download | definitions-d2d8f005877468e49a9f4254ee96912ee2344a4a.tar.gz |
Configuring GDM
This commit configures GDM, not perfectly but at least in a way
that it works.
We've now:
o Enabled installation of the xsession file
o Enable X
o Install basic LFS style PAM configuration
o Create the gdm user properly in the system integration hook
o Added some post-install-commands to tweak the PAM configuration
Change-Id: I668de58734a5d5db8bcb57ae157d212bc3c9598b
Diffstat (limited to 'strata/gnome')
-rw-r--r-- | strata/gnome/gdm.morph | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/strata/gnome/gdm.morph b/strata/gnome/gdm.morph index cd5e37e9..342b70d2 100644 --- a/strata/gnome/gdm.morph +++ b/strata/gnome/gdm.morph @@ -2,4 +2,21 @@ name: gdm kind: chunk build-system: autotools configure-commands: -- ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc --with-plymouth=no +- | + # 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 -c "GDM Daemon Owner" -d /var/lib/gdm -u 21 -g gdm -s /bin/false gdm |