Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Commit 8ce4a15

Browse files
authored
Merge pull request #558 from marineam/baselayout
prod_image_util: move pam.d contents, not the directory
2 parents a71d3af + 7ccb981 commit 8ce4a15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_library/prod_image_util.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ L+ /etc/ld.so.conf - - - - ../usr/lib/ld.so.conf
108108
EOF
109109

110110
# Move the PAM configuration into /usr
111-
sudo mv ${root_fs_dir}/etc/pam.d ${root_fs_dir}/usr/lib
111+
sudo mkdir -p ${root_fs_dir}/usr/lib/pam.d
112+
sudo mv -n ${root_fs_dir}/etc/pam.d/* ${root_fs_dir}/usr/lib/pam.d/
113+
sudo rmdir ${root_fs_dir}/etc/pam.d
112114

113115
finish_image "${image_name}" "${disk_layout}" "${root_fs_dir}" "${image_contents}"
114116

0 commit comments

Comments
 (0)