Fixing ownership in airootfs customization
Fixing wrong ownership of files when copying overlay modifications from
the config's airootfs directory to the working directory in
make_customize_airootfs() by using the cp flag
'--no-preserve=ownership'.
Thanks to Marcos Mello and Francois Dupoux of sysresccd
(https://gitlab.com/fdupoux/sysresccd-src) for making this fix available.
for i in "${@}"; do
local _dir="${i%/}"
if [[ -d "${_dir}" ]]; then
- cp -af "${_dir}"/* "${work_dir}/${arch}/airootfs"
+ cp -af --no-preserve=ownership "${_dir}"/* "${work_dir}/${arch}/airootfs"
fi
done
}