Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso9
1 files changed, 7 insertions, 2 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 0d7c698..f9c64ac 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -293,8 +293,13 @@ _make_custom_airootfs() {
elif [[ ! -e "${airootfs_dir}${filename}" ]]; then
_msg_warning "Cannot change permissions of '${airootfs_dir}${filename}'. The file or directory does not exist."
else
- chown -fh -- "${permissions[0]}:${permissions[1]}" "${airootfs_dir}${filename}"
- chmod -f -- "${permissions[2]}" "${airootfs_dir}${filename}"
+ if [[ "${filename: -1}" == "/" ]]; then
+ chown -fhR -- "${permissions[0]}:${permissions[1]}" "${airootfs_dir}${filename}"
+ chmod -fR -- "${permissions[2]}" "${airootfs_dir}${filename}"
+ else
+ chown -fh -- "${permissions[0]}:${permissions[1]}" "${airootfs_dir}${filename}"
+ chmod -f -- "${permissions[2]}" "${airootfs_dir}${filename}"
+ fi
fi
done
_msg_info "Done!"