index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Celeste Liu <CoelacanthusHex@gmail.com> | 2022-10-13 18:07:18 +0800 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-01-06 16:58:29 +0100 |
commit | 009c58f7c94b5f63aa41a0a82cd23ee7712f05a9 (patch) | |
tree | 02475d7536c7f7183c83ed29c6eb33e91044f8db /src/archbuild.in | |
parent | 112026580d21c35b505de2378f21580d274e898f (diff) |
-rw-r--r-- | src/archbuild.in | 16 |
diff --git a/src/archbuild.in b/src/archbuild.in index e6cf19a..ba3ba94 100644 --- a/src/archbuild.in +++ b/src/archbuild.in @@ -23,6 +23,22 @@ if [[ -f "@pkgdatadir@/setarch-aliases.d/${arch}" ]]; then else set_arch="${arch}" fi + +# Architecture-specific Mount +arch_mounts=() +if [[ -f "@pkgdatadir@/mount.d/${arch}" ]]; then + mapfile -t arch_mounts < "@pkgdatadir@/mount.d/${arch}" +fi +for arch_mount in "${arch_mounts[@]}"; do + if [[ $arch_mount = rw* ]]; then + arch_mount=${arch_mount#rw } + in_array "$arch_mount" "${makechrootpkg_args[@]}" || makechrootpkg_args+=("-d" "$arch_mount") + elif [[ $arch_mount = ro* ]]; then + arch_mount=${arch_mount#ro } + in_array "$arch_mount" "${makechrootpkg_args[@]}" || makechrootpkg_args+=("-D" "$arch_mount") + fi +done + chroots='/var/lib/archbuild' clean_first=false |