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

Commit 7ccb981

Browse files
committed
prod_image_util: move pam.d contents, not the directory
The baselayout package now creates and installs /usr/lib/pam.d, causing mv to fail. Move the contents instead which is happy with both versions.
1 parent a71d3af commit 7ccb981

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_library/prod_image_util.sh

Lines changed: 3 additions & 1 deletion
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)