>>> arch-install-scripts: Building community/arch-install-scripts 29-r0 (using abuild 3.15.0-r1) started Thu, 16 Oct 2025 19:58:12 +0000 >>> arch-install-scripts: Validating /home/udu/aports/community/arch-install-scripts/APKBUILD... >>> arch-install-scripts: Analyzing dependencies... >>> arch-install-scripts: Installing for build: build-base bash coreutils pacman util-linux-misc m4 asciidoc WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/49) Installing coreutils-env (9.7-r1) (2/49) Installing coreutils-fmt (9.7-r1) (3/49) Installing coreutils-sha512sum (9.7-r1) (4/49) Installing libattr (2.5.2-r2) (5/49) Installing skalibs-libs (2.14.4.0-r0) (6/49) Installing utmps-libs (0.1.3.1-r0) (7/49) Installing coreutils (9.7-r1) (8/49) Installing lz4-libs (1.10.0-r0) (9/49) Installing libarchive-tools (3.8.1-r0) (10/49) Installing libarchive (3.8.1-r0) (11/49) Installing libgpg-error (1.55-r0) (12/49) Installing libassuan (2.5.7-r0) (13/49) Installing pinentry (1.3.1-r0) Executing pinentry-1.3.1-r0.post-install (14/49) Installing libgcrypt (1.10.3-r1) (15/49) Installing gnupg-gpgconf (2.4.7-r0) (16/49) Installing nettle (3.10.1-r0) (17/49) Installing libtasn1 (4.20.0-r0) (18/49) Installing p11-kit (0.25.5-r2) (19/49) Installing gnutls (3.8.8-r0) (20/49) Installing libksba (1.6.7-r0) (21/49) Installing libsasl (2.1.28-r8) (22/49) Installing libldap (2.6.8-r0) (23/49) Installing npth (1.8-r0) (24/49) Installing gnupg-dirmngr (2.4.7-r0) (25/49) Installing gnupg-keyboxd (2.4.7-r0) (26/49) Installing gpg (2.4.7-r0) (27/49) Installing gpg-agent (2.4.7-r0) (28/49) Installing gpgsm (2.4.7-r0) (29/49) Installing gpgme (1.24.2-r1) (30/49) Installing pacman (7.0.0-r0) (31/49) Installing setarch (2.41-r9) (32/49) Installing libeconf (0.6.3-r0) (33/49) Installing libblkid (2.41-r9) (34/49) Installing libuuid (2.41-r9) (35/49) Installing libfdisk (2.41-r9) (36/49) Installing libmount (2.41-r9) (37/49) Installing libsmartcols (2.41-r9) (38/49) Installing util-linux-misc (2.41-r9) (39/49) Installing m4 (1.4.19-r4) (40/49) Installing libxml2 (2.13.9-r0) (41/49) Installing libxml2-utils (2.13.9-r0) (42/49) Installing docbook-xml (4.5-r10) Executing docbook-xml-4.5-r10.post-install (43/49) Installing libxslt (1.1.43-r3) (44/49) Installing docbook-xsl-ns (1.79.2-r11) Executing docbook-xsl-ns-1.79.2-r11.post-install (45/49) Installing docbook-xsl-nons (1.79.2-r11) Executing docbook-xsl-nons-1.79.2-r11.post-install (46/49) Installing docbook-xsl (1.79.2-r11) (47/49) Installing asciidoc-pyc (10.2.1-r0) (48/49) Installing asciidoc (10.2.1-r0) (49/49) Installing .makedepends-arch-install-scripts (20251016.195813) Executing busybox-1.37.0-r19.trigger OK: 344 MiB in 138 packages >>> arch-install-scripts: Cleaning up srcdir >>> arch-install-scripts: Cleaning up pkgdir >>> arch-install-scripts: Cleaning up tmpdir >>> arch-install-scripts: Fetching https://gitlab.archlinux.org/archlinux/arch-install-scripts/-/archive/v29/arch-install-scripts-v29.tar.gz >>> arch-install-scripts: Fetching https://gitlab.archlinux.org/archlinux/arch-install-scripts/-/archive/v29/arch-install-scripts-v29.tar.gz >>> arch-install-scripts: Checking sha512sums... arch-install-scripts-v29.tar.gz: OK >>> arch-install-scripts: Unpacking /var/cache/distfiles/arch-install-scripts-v29.tar.gz... GEN arch-chroot GEN doc/genfstab.8 GEN genfstab GEN doc/pacstrap.8 GEN pacstrap GEN doc/arch-chroot.8 (command.CommandList children:[ (C (w ) (w ) (w )) (command.ShAssignment left: children:[ (command.Sentence child:(C (w ) (w (DQ ($ 1) ($ 2) ) ) (w (DQ (BracedVarSub left: name_tok: var_name:"@" suffix_op:(suffix_op.Slice begin:(w )) right: ) ) ) ) terminator: ) ] right: ) code_str:"out() { printf \"$1 $2\\n\" \"${@:3}\"; }" ) (ShFunction name_tok: name:error body:(command.Redirect child:(BraceGroup left: children:[ (command.Sentence child:(C (w ) (w (DQ ERROR:">)) (w (DQ ($ VSub_At))) ) terminator: ) ] right: ) redirects:[ (Redir op:&"> loc:(redir_loc.Fd fd:1) arg:(w ) ) ] ) ) (ShFunction name_tok: name:warning body:(command.Redirect child:(BraceGroup left: children:[ (command.Sentence child:(C (w ) (w (DQ WARNING:">)) (w (DQ ($ VSub_At))) ) terminator: ) ] right: ) redirects:[ (Redir op:&"> loc:(redir_loc.Fd fd:1) arg:(w ) ) ] ) ) (ShFunction name_tok: name:msg body:(BraceGroup left: children:[ (command.Sentence child:(C (w ) (w (DQ ">)) (w (DQ ($ VSub_At))) ) terminator: ) ] right: ) code_str:"msg() { out \"==>\" \"$@\"; }" ) (ShFunction name_tok: name:die body:(BraceGroup left: children:[ (command.Sentence child:(C (w ) (w (DQ ($ VSub_At)))) terminator: ) (command.Sentence child:(command.ControlFlow keyword: arg_word:(w ) ) terminator: ) ] right: ) code_str:"die() { error \"$@\"; exit 1; }" ) (ShFunction name_tok: name:ignore_error body:(BraceGroup left: children:[ (C (w (DQ ($ VSub_At)))) (command.ControlFlow keyword: arg_word:(w ) ) ] right: ) code_str:"ignore_error() {\n \"$@\" 2>/dev/null\n return 0\n}" ) (ShFunction name_tok: name:chroot_add_mount body:(BraceGroup left: children:[ (command.AndOr children:[ (C (w ) (w (DQ ($ VSub_At)))) (command.ShAssignment left: pairs:[ (InitializerWord.ArrayWord w:(w (DQ ($ 2)))) (InitializerWord.ArrayWord w:(w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_MOUNTS bracket_op:(bracket_op.WholeArray op_id:Lit_At ) right: ) ) ) ) ] right: ) ) ) ] ) ] ops:[] ) ] right: ) code_str:"chroot_add_mount() {\n mount \"$@\" && CHROOT_ACTIVE_MOUNTS=(\"$2\" \"${CHROOT_ACTIVE_MOUNTS[@]}\")\n}" ) (ShFunction name_tok: name:chroot_maybe_add_mount body:(BraceGroup left: children:[ (command.Sentence child:(C (w ) (w ) (C (w )) (command.If if_kw: arms:[ (IfArm keyword:...0x1ed6 cond:[ (command.Sentence child:(C (w ) (w (DQ ($ cond)))) terminator: ) ] then_kw: action:[ (C (w ) (w (DQ ($ VSub_At)))) ] then_tok:...0x1e7a ) ] else_action:[] fi_kw: ) ] right: ) code_str:"chroot_maybe_add_mount() {\n local cond=$1; shift\n if eval \"$cond\"; then\n chroot_add_mount \"$@\"\n fi\n}" ) (ShFunction name_tok: name:chroot_setup body:(BraceGroup left: children:[ (command.ShAssignment left: pairs:[] right: ) ) ) ] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.WordTest w:(w (CommandSub left_token: child:(C (w ) (w ) (w ) ) right: ) ) ) right: ) (C (w ) (w (SQ "(BUG): attempting to overwrite existing EXIT trap")) ) ] ops:[] ) (C (w ) (w (SQ chroot_teardown)) (w )) (command.AndOr children:[ (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) ) ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) ] ops:[ ] ) ] right: ) code_str:"chroot_setup() {\n CHROOT_ACTIVE_MOUNTS=()\n [[ $(trap -p EXIT) ]] && die '(BUG): attempting to overwrite existing EXIT trap'\n trap 'chroot_teardown' EXIT\n\n chroot_add_mount proc \"$1/proc\" -t proc -o nosuid,noexec,nodev &&\n chroot_add_mount sys \"$1/sys\" -t sysfs -o nosuid,noexec,nodev,ro &&\n ignore_error chroot_maybe_add_mount \"[[ -d '$1/sys/firmware/efi/efivars' ]]\" \\\n efivarfs \"$1/sys/firmware/efi/efivars\" -t efivarfs -o nosuid,noexec,nodev &&\n chroot_add_mount udev \"$1/dev\" -t devtmpfs -o mode=0755,nosuid &&\n chroot_add_mount devpts \"$1/dev/pts\" -t devpts -o mode=0620,gid=5,nosuid,noexec &&\n chroot_add_mount shm \"$1/dev/shm\" -t tmpfs -o mode=1777,nosuid,nodev &&\n chroot_add_mount /run \"$1/run\" --bind --make-private &&\n chroot_add_mount tmp \"$1/tmp\" -t tmpfs -o mode=1777,strictatime,nodev,nosuid\n}" ) (ShFunction name_tok: name:chroot_teardown body:(BraceGroup left: children:[ (command.If if_kw: arms:[ (IfArm keyword:...0x204e cond:[ (command.Sentence child:(command.DParen left: child:(w (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_MOUNTS prefix_op: bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) right: ) terminator: ) ] then_kw: action:[ (C (w ) (w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_MOUNTS bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) ) ) ] then_tok:...0x2a96 ) ] else_action:[] fi_kw: ) (C (w ) (w )) ] right: ) code_str:"chroot_teardown() {\n if (( ${#CHROOT_ACTIVE_MOUNTS[@]} )); then\n umount \"${CHROOT_ACTIVE_MOUNTS[@]}\"\n fi\n unset CHROOT_ACTIVE_MOUNTS\n}" ) (ShFunction name_tok: name:chroot_add_mount_lazy body:(BraceGroup left: children:[ (command.AndOr children:[ (C (w ) (w (DQ ($ VSub_At)))) (command.ShAssignment left: pairs:[ (InitializerWord.ArrayWord w:(w (DQ ($ 2)))) (InitializerWord.ArrayWord w:(w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_LAZY bracket_op:(bracket_op.WholeArray op_id:Lit_At ) right: ) ) ) ) ] right: ) ) ) ] ) ] ops:[] ) ] right: ) code_str:"chroot_add_mount_lazy() {\n mount \"$@\" && CHROOT_ACTIVE_LAZY=(\"$2\" \"${CHROOT_ACTIVE_LAZY[@]}\")\n}" ) (ShFunction name_tok: name:chroot_bind_device body:(BraceGroup left: children:[ (command.AndOr children:[ (C (w ) (w (DQ ($ 2)))) (command.ShAssignment left: pairs:[ (InitializerWord.ArrayWord w:(w (DQ ($ 2)))) (InitializerWord.ArrayWord w:(w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_FILES bracket_op:(bracket_op.WholeArray op_id:Lit_At ) right: ) ) ) ) ] right: ) ) ) ] ) ] ops:[] ) (C (w ) (w (DQ ($ 1))) (w (DQ ($ 2))) (w ) ) ] right: ) code_str:"chroot_bind_device() {\n touch \"$2\" && CHROOT_ACTIVE_FILES=(\"$2\" \"${CHROOT_ACTIVE_FILES[@]}\")\n chroot_add_mount \"$1\" \"$2\" --bind\n}" ) (ShFunction name_tok: name:chroot_add_link body:(BraceGroup left: children:[ (command.AndOr children:[ (C (w ) (w ) (w (DQ ($ 1))) (w (DQ ($ 2))) ) (command.ShAssignment left: pairs:[ (InitializerWord.ArrayWord w:(w (DQ ($ 2)))) (InitializerWord.ArrayWord w:(w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_FILES bracket_op:(bracket_op.WholeArray op_id:Lit_At ) right: ) ) ) ) ] right: ) ) ) ] ) ] ops:[] ) ] right: ) code_str:"chroot_add_link() {\n ln -sf \"$1\" \"$2\" && CHROOT_ACTIVE_FILES=(\"$2\" \"${CHROOT_ACTIVE_FILES[@]}\")\n}" ) (ShFunction name_tok: name:unshare_setup body:(BraceGroup left: children:[ (command.ShAssignment left: pairs:[] right: ) ) ) ] ) (command.ShAssignment left: pairs:[] right: ) ) ) ] ) (command.ShAssignment left: pairs:[] right: ) ) ) ] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.WordTest w:(w (CommandSub left_token: child:(C (w ) (w ) (w ) ) right: ) ) ) right: ) (C (w ) (w (SQ "(BUG): attempting to overwrite existing EXIT trap")) ) ] ops:[] ) (C (w ) (w (SQ unshare_teardown)) (w ) ) (command.AndOr children:[ (C (w ) (w (DQ ($ 1))) (w (DQ ($ 1))) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) ) (C (w ) (w ) (w (DQ ($ 1) )) (w ) (w ) (w ) (w ) ) ] ops:[ ] ) ] right: ) code_str:"unshare_setup() {\n CHROOT_ACTIVE_MOUNTS=()\n CHROOT_ACTIVE_LAZY=()\n CHROOT_ACTIVE_FILES=()\n [[ $(trap -p EXIT) ]] && die '(BUG): attempting to overwrite existing EXIT trap'\n trap 'unshare_teardown' EXIT\n\n chroot_add_mount_lazy \"$1\" \"$1\" --bind &&\n chroot_add_mount proc \"$1/proc\" -t proc -o nosuid,noexec,nodev &&\n chroot_add_mount_lazy /sys \"$1/sys\" --rbind &&\n chroot_add_link /proc/self/fd \"$1/dev/fd\" &&\n chroot_add_link /proc/self/fd/0 \"$1/dev/stdin\" &&\n chroot_add_link /proc/self/fd/1 \"$1/dev/stdout\" &&\n chroot_add_link /proc/self/fd/2 \"$1/dev/stderr\" &&\n chroot_bind_device /dev/full \"$1/dev/full\" &&\n chroot_bind_device /dev/null \"$1/dev/null\" &&\n chroot_bind_device /dev/random \"$1/dev/random\" &&\n chroot_bind_device /dev/tty \"$1/dev/tty\" &&\n chroot_bind_device /dev/urandom \"$1/dev/urandom\" &&\n chroot_bind_device /dev/zero \"$1/dev/zero\" &&\n chroot_add_mount run \"$1/run\" -t tmpfs -o nosuid,nodev,mode=0755 &&\n chroot_add_mount tmp \"$1/tmp\" -t tmpfs -o mode=1777,strictatime,nodev,nosuid\n}" ) (ShFunction name_tok: name:unshare_teardown body:(BraceGroup left: children:[ (C (w )) (command.If if_kw: arms:[ (IfArm keyword:...0x393a cond:[ (command.Sentence child:(command.DParen left: child:(w (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_LAZY prefix_op: bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) right: ) terminator: ) ] then_kw: action:[ (C (w ) (w ) (w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_LAZY bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) ) ) ] then_tok:...0x38da ) ] else_action:[] fi_kw: ) (C (w ) (w )) (command.If if_kw: arms:[ (IfArm keyword:...0x37e2 cond:[ (command.Sentence child:(command.DParen left: child:(w (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_FILES prefix_op: bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) right: ) terminator: ) ] then_kw: action:[ (C (w ) (w (DQ (BracedVarSub left: name_tok: var_name:CHROOT_ACTIVE_FILES bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) ) ) ] then_tok:...0x3786 ) ] else_action:[] fi_kw: ) (C (w ) (w )) ] right: ) code_str:"unshare_teardown() {\n chroot_teardown\n\n if (( ${#CHROOT_ACTIVE_LAZY[@]} )); then\n umount --lazy \"${CHROOT_ACTIVE_LAZY[@]}\"\n fi\n unset CHROOT_ACTIVE_LAZY\n\n if (( ${#CHROOT_ACTIVE_FILES[@]} )); then\n rm \"${CHROOT_ACTIVE_FILES[@]}\"\n fi\n unset CHROOT_ACTIVE_FILES\n}" ) (command.ShAssignment left:)) ) ] ) (command.ShAssignment left: ) ) ) ] ) (ShFunction name_tok: name:declare_all body:(BraceGroup left: children:[ (command.Pipeline children:[ (C (w ) (w )) (C (w ) (w ) (w (CommandSub left_token: child:(C (w ) (w )) right: ) ) ) ] ops:[] ) (C (w ) (w )) ] right: ) code_str:"declare_all() {\n # Remove read-only variables to avoid warnings. Unfortunately, declare +r -p\n # doesn't work like it looks like it should (declaring only read-write\n # variables). However, declare -rp will print out read-only variables, which\n # we can then use to remove those definitions.\n declare -p | grep -Fvf <(declare -rp)\n # Then declare functions\n declare -pf\n}" ) (ShFunction name_tok: name:usage body:(BraceGroup left: children:[(C (w ))] right: ) code_str:"usage() {\n cat <[:group] Specify non-root user and optional group to use\n -r Do not change the resolv.conf within the chroot\n\nIf 'command' is unspecified, ${0##*/} will launch /bin/bash.\n\nNote that when using arch-chroot, the target chroot directory *should* be a\nmountpoint. This ensures that tools such as pacman(8) or findmnt(8) have an\naccurate hierarchy of the mounted filesystems within the chroot.\n\nIf your chroot target is not a mountpoint, you can bind mount the directory on\nitself to make it a mountpoint, i.e. 'mount --bind /your/chroot /your/chroot'.\n\nEOF\n}" ) (ShFunction name_tok: name:resolve_link body:(BraceGroup left: children:[ (C (w ) (w expr:(bool_expr.LogicalAnd left:(bool_expr.Unary op_id:BoolUnary_n child:(w ($ root))) right:(bool_expr.Binary op_id:BoolBinary_GlobNEqual left:(w ($ root)) right:(w ) ) ) right: ) (command.ShAssignment left:] ) (command.WhileUntil keyword: cond:[ (command.Sentence child:(command.DBracket left: expr:(bool_expr.Unary op_id:BoolUnary_L child:(w ($ target))) right: ) terminator: ) ] body:(command.DoGroup left: children:[ (command.ShAssignment left: child:(C (w ) (w ) (w (DQ ($ target))) ) right: ) ) ) ] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.LogicalAnd left:(bool_expr.Unary op_id:BoolUnary_n child:(w ($ root)) ) right:(bool_expr.Binary op_id:BoolBinary_GlobNEqual left:(w ($ target)) right:(w ($ root) ) ) ) right: ) (command.ShAssignment left: name_tok: var_name:target suffix_op:(suffix_op.Unary op: arg_word:(w ) ) right: ) ) ) ] ) ] ops:[] ) ] right: ) ) (C (w ) (w ) (w (DQ ($ target))) ) ] right: ) code_str:"resolve_link() {\n local target=$1\n local root=$2\n\n # If a root was given, make sure it ends in a slash.\n [[ -n $root && $root != */ ]] && root=$root/\n\n while [[ -L $target ]]; do\n target=$(readlink -m \"$target\")\n # If a root was given, make sure the target is under it.\n # Make sure to strip any leading slash from target first.\n [[ -n $root && $target != $root* ]] && target=$root${target#/}\n done\n\n printf %s \"$target\"\n}" ) (ShFunction name_tok: name:chroot_add_resolv_conf body:(BraceGroup left: children:[ (C (w ) (w child:(C (w ) (w ) ) right: ) ) ) ] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.Unary op_id:BoolUnary_e child:(w ($ src))) right: ) (command.ControlFlow keyword: arg_word:(w ) ) ] ops:[] ) (command.If if_kw: arms:[ (IfArm keyword:...0x400a cond:[ (command.Sentence child:(command.DBracket left: expr:(bool_expr.LogicalAnd left:(bool_expr.LogicalNot child:(bool_expr.Unary op_id:BoolUnary_e child:(w (DQ ($ dest))) ) ) right:(bool_expr.LogicalNot child:(bool_expr.Unary op_id:BoolUnary_h child:(w (DQ ($ dest))) ) ) ) right: ) terminator: ) ] then_kw: action:[ (command.ControlFlow keyword: arg_word:(w ) ) ] then_tok:...0x4a02 ) ] else_action:[] fi_kw: ) (C (w ) (w (DQ ($ src))) (w (DQ ($ dest))) (w ) (w ) ) ] right: ) code_str:"chroot_add_resolv_conf() {\n local chrootdir=$1\n local src\n local dest=\"$chrootdir/etc/resolv.conf\"\n\n src=$(resolve_link /etc/resolv.conf)\n\n # If we don't have a source resolv.conf file, there's nothing useful we can do.\n [[ -e $src ]] || return 0\n\n if [[ ! -e \"$dest\" && ! -h \"$dest\" ]]; then\n # There may be no resolv.conf in the chroot. In this case, we'll just exit.\n # The chroot environment must not be concerned with DNS resolution.\n return 0\n fi\n\n chroot_add_mount \"$src\" \"$dest\" -c --bind\n}" ) (ShFunction name_tok: name:arch-chroot body:(BraceGroup left: children:[ (command.AndOr children:[ (command.DParen left: child:(arith_expr.Binary op: left: right:(w ) ) right: ) (C (w ) (w (SQ "This script must be run with root privileges")) ) ] ops:[] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.Unary op_id:BoolUnary_d child:(w ($ chrootdir))) right: ) (C (w ) (w (DQ )) (w (DQ ($ chrootdir))) ) ] ops:[] ) (command.AndOr children:[ (C (w ($ setup)) (w (DQ ($ chrootdir)))) (C (w ) (w (DQ )) (w (DQ ($ chrootdir))) ) ] ops:[] ) (command.If if_kw: arms:[ (IfArm keyword:...0x4646 cond:[ (command.Sentence child:(command.DParen left: child:(arith_expr.Unary op_id:Arith_Bang child: ) right: ) terminator: ) ] then_kw: action:[ (command.AndOr children:[ (C (w ) (w (DQ ($ chrootdir))) ) (C (w ) (w (DQ )) ) ] ops:[] ) ] then_tok:...0x45fe ) ] else_action:[] fi_kw: ) (command.If if_kw: arms:[ (IfArm keyword:...0x4fb6 cond:[ (command.Sentence child:(command.Pipeline negated: children:[ (C (w ) (w ) (w (DQ ($ chrootdir))) ) ] ops:[] ) terminator: ) ] then_kw: action:[ (C (w ) (w (DQ ($ chrootdir) < Lit_Chars " is not a mountpoint. This may have undesirable side effects." > ) ) ) ] then_tok:...0x4f36 ) ] else_action:[] fi_kw: ) (command.ShAssignment left: pairs:[] right: ) ) ) ] ) (command.AndOr children:[ (command.DBracket left: expr:(bool_expr.WordTest w:(w ($ userspec))) right: ) (command.ShAssignment left: pairs:[ (InitializerWord.ArrayWord w:(w ) ) (InitializerWord.ArrayWord w:(w (DQ ($ userspec)))) ] right: ) ) ) ] ) ] ops:[] ) (command.Simple blame_tok: more_env:[ (EnvPair left: name_tok: var_name:chroot_args bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) ) (w ) (w (DQ ($ chrootdir))) (w (DQ (BracedVarSub left: name_tok: var_name:args bracket_op:(bracket_op.WholeArray op_id:Lit_At) right: ) ) ) ] is_last_cmd:F ) ] right: ) code_str:"arch-chroot() {\n (( EUID == 0 )) || die 'This script must be run with root privileges'\n\n [[ -d $chrootdir ]] || die \"Can't create chroot on non-directory %s\" \"$chrootdir\"\n\n $setup \"$chrootdir\" || die \"failed to setup chroot %s\" \"$chrootdir\"\n if (( ! keepresolvconf )); then\n chroot_add_resolv_conf \"$chrootdir\" || die \"failed to setup resolv.conf\"\n fi\n\n if ! mountpoint -q \"$chrootdir\"; then\n warning \"$chrootdir is not a mountpoint. This may have undesirable side effects.\"\n fi\n\n chroot_args=()\n [[ $userspec ]] && chroot_args+=(--userspec \"$userspec\")\n\n SHELL=/bin/bash $pid_unshare chroot \"${chroot_args[@]}\" -- \"$chrootdir\" \"${args[@]}\"\n}" ) (command.WhileUntil keyword: cond:[ (command.Sentence child:(C (w ) (w (SQ ":hNu:r")) (w ) ) terminator: ) ] body:(command.DoGroup left: children:[ (command.Case case_kw: to_match:(case_arg.Word w:(w ($ flag))) arms_start: arms:[ (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (C (w )) (command.ControlFlow keyword: arg_word:(w ) ) ] right: ) (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (command.ShAssignment left: ) (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (command.ShAssignment left: ) (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (command.ShAssignment left: ) (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (C (w ) (w (SQ "%s: option requires an argument -- ") (word_part.EscapedLiteral token: ch:"'" ) (SQ "%s") (word_part.EscapedLiteral token: ch:"'" ) ) (w (DQ (BracedVarSub left: name_tok: var_name:0 suffix_op:(suffix_op.Unary op: arg_word:(w ) ) right: ) ) ) (w (DQ ($ OPTARG))) ) ] right: ) (CaseArm left: pattern:(pat.Words words:[(w )]) middle: action:[ (C (w ) (w (SQ "%s: invalid option -- ") (word_part.EscapedLiteral token: ch:"'" ) (SQ "%s") (word_part.EscapedLiteral token: ch:"'" ) ) (w (DQ (BracedVarSub left: name_tok: var_name:0 suffix_op:(suffix_op.Unary op: arg_word:(w ) ) right: ) ) ) (w (DQ ($ OPTARG))) ) ] right: ) ] arms_end: ) ] right: ) ) (C (w ) (w (word_part.ArithSub left: anode:(arith_expr.Binary op: left: right:(w ) ) right: ) ) ) (command.AndOr children:[ (command.DParen left: child:(w ($ VSub_Pound)) right: ) (C (w ) (w (SQ "No chroot directory specified"))) ] ops:[] ) (command.ShAssignment left: pairs:[(InitializerWord.ArrayWord w:(w (DQ ($ VSub_At))))] right: ) ) ) ] ) (command.If if_kw: arms:[ (IfArm keyword:...0x5a62 cond:[ (command.Sentence child:(command.DParen left: child: right: ) terminator: ) ] then_kw: action:[ (command.ShAssignment left: child:(C (w )) right: ) ) ) ) ] then_tok:...0x5a1e ) ] else_kw: else_action:[ (command.ShAssignment left: