Skip to contentSkip to conversation

Enable PAM functionality within systemd.

PATCH New James Balean 2 participants 2 messages Feb 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable PAM functionality within systemd.

Enables systemd PAM support if BR2_PACKAGE_LINUX_PAM is set.
Some essential config files are not installed without the --enable-pam option.

---
 package/systemd/systemd.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/systemd/systemd.mk +7 -1
index fce5d84..0d2f416 100644
@@ -30,7 +30,6 @@ SYSTEMD_CONF_OPTS += \
 	--enable-blkid \
 	--enable-static=no \
 	--disable-manpages \
-	--disable-pam \
 	--disable-ima \
 	--disable-libcryptsetup \
 	--disable-efi \
@@ -108,6 +107,13 @@ else
 SYSTEMD_CONF_OPTS += --disable-lz4
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+SYSTEMD_DEPENDENCIES += linux-pam
+SYSTEMD_CONF_OPTS += --enable-pam
+else
+SYSTEMD_CONF_OPTS += --disable-pam
+endif
+
 ifeq ($(BR2_PACKAGE_XZ),y)
 SYSTEMD_DEPENDENCIES += xz
 SYSTEMD_CONF_OPTS += --enable-xz
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 Enable PAM functionality within systemd.

Hello,

Quoted 7 lines · James Balean

Enables systemd PAM support if BR2_PACKAGE_LINUX_PAM is set.
Some essential config files are not installed without the --enable-pam option.

---
 package/systemd/systemd.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Applied to next, after tweaking a bit the commit title.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com