From 0bd89d338189f7e523a4ed7279c268424cd99aa3 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Tue, 5 Apr 2016 14:37:19 -0700 Subject: [PATCH] Move PAM configuration to /usr at build time A bunch of packages install PAM configuration fragments in /etc. Rather than modify them all to install into /usr/lib, just move the entire directory at image build time. --- build_library/prod_image_util.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_library/prod_image_util.sh b/build_library/prod_image_util.sh index 17bccd2b84..30c49761c5 100755 --- a/build_library/prod_image_util.sh +++ b/build_library/prod_image_util.sh @@ -107,6 +107,9 @@ create_prod_image() { L+ /etc/ld.so.conf - - - - ../usr/lib/ld.so.conf EOF + # Move the PAM configuration into /usr + sudo mv ${root_fs_dir}/etc/pam.d ${root_fs_dir}/usr/lib + finish_image "${image_name}" "${disk_layout}" "${root_fs_dir}" "${image_contents}" upload_image -d "${BUILD_DIR}/${image_name}.bz2.DIGESTS" \