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

Commit

Permalink
prod_image_util: move pam.d contents, not the directory
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marineam committed Jun 13, 2016
1 parent a71d3af commit 7ccb981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build_library/prod_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ 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
sudo mkdir -p ${root_fs_dir}/usr/lib/pam.d
sudo mv -n ${root_fs_dir}/etc/pam.d/* ${root_fs_dir}/usr/lib/pam.d/
sudo rmdir ${root_fs_dir}/etc/pam.d

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

Expand Down

0 comments on commit 7ccb981

Please sign in to comment.