From: Carlos Santos Date: Sat, 14 Sep 2019 16:41:43 +0000 (-0300) Subject: package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40af3a6661f8d85fef60b6de603e78700f4f86e6;p=buildroot.git package/util-linux: create $(TARGET_DIR)/etc/pam.d if necessary Useful for test purposes when we want to install util-linux with a custom TARGET_DIR, e.g. $ make util-linux-reinstall TARGET_DIR=/tmp/util-linux Signed-off-by: Carlos Santos Signed-off-by: Thomas Petazzoni --- diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index 99ec39467f..6daca6b5e6 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -236,9 +236,9 @@ endif # Install PAM configuration files ifeq ($(BR2_PACKAGE_UTIL_LINUX_SU)$(BR2_PACKAGE_LINUX_PAM),yy) define UTIL_LINUX_INSTALL_PAMFILES - $(INSTALL) -m 0644 package/util-linux/su.pam \ + $(INSTALL) -D -m 0644 package/util-linux/su.pam \ $(TARGET_DIR)/etc/pam.d/su - $(INSTALL) -m 0644 package/util-linux/su.pam \ + $(INSTALL) -D -m 0644 package/util-linux/su.pam \ $(TARGET_DIR)/etc/pam.d/su-l $(UTIL_LINUX_SELINUX_PAMFILES_TWEAK) endef