Error on analyzing boot image (3.0.0 alpha)
Before analyzing bootimg in 3.0.0 alpha, I zapped the chroots with pmbootstrap -y zap -p
as Mastodon post suggested.
First try to analyze
(007593) [01:56:14] Pmbootstrap v3.0.0_alpha (Python 3.12.3 (main, Apr 12 2024, 12:34:12) [GCC 13.2.0])
(007593) [01:56:14] $ pmbootstrap /home/user/.local/bin/pmbootstrap bootimg_analyze /home/user/twrp-3.7.0_9-0-beyondx.img
(007593) [01:56:14] NOTE: You will be prompted for your sudo/doas password, so we can set up a chroot to extract and analyze your boot.img file
(007593) [01:56:14] NOTE: Skipped apk version check for chroot 'native', because it is not installed yet!
(007593) [01:56:14] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git remote -v
(007593) [01:56:14] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git show origin/master:channels.cfg
(007593) [01:56:16] (native) install file unpackbootimg
(007593) [01:56:16] (native) chroot not initialized! This is a bug! Please report it.
(007593) [01:56:16] (native) initializing the chroot for you...
File "/home/user/.local/bin/pmbootstrap", line 12, in <module>
sys.exit(pmb.main())
File "/home/user/software/pmbootstrap/pmb/__init__.py", line 87, in main
run_command(args)
File "/home/user/software/pmbootstrap/pmb/commands/__init__.py", line 60, in run_command
getattr(frontend, args.action)(args)
File "/home/user/software/pmbootstrap/pmb/helpers/frontend.py", line 624, in bootimg_analyze
bootimg = pmb.parse.bootimg(args.path)
File "/home/user/software/pmbootstrap/pmb/parse/bootimg.py", line 85, in bootimg
pmb.chroot.apk.install(["file", "unpackbootimg"], Chroot.native())
File "/home/user/software/pmbootstrap/pmb/chroot/apk.py", line 290, in install
install_run_apk(to_add, to_add_local, to_del, chroot)
File "/home/user/software/pmbootstrap/pmb/chroot/apk.py", line 222, in install_run_apk
traceback.print_stack(file=logging.logfd)
(007593) [01:56:16] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/dev
(007593) [01:56:16] % sudo mount -t tmpfs -o size=1M,noexec,dev tmpfs /home/user/.local/var/pmbootstrap/chroot_native/dev
(007593) [01:56:17] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/dev/pts /home/user/.local/var/pmbootstrap/chroot_native/dev/shm
(007593) [01:56:17] % sudo mount -t tmpfs -o nodev,nosuid,noexec tmpfs /home/user/.local/var/pmbootstrap/chroot_native/dev/shm
(007593) [01:56:17] % sudo mknod -m 666 /home/user/.local/var/pmbootstrap/chroot_native/dev/null c 1 3
(007593) [01:56:17] % sudo mknod -m 666 /home/user/.local/var/pmbootstrap/chroot_native/dev/zero c 1 5
(007593) [01:56:17] % sudo mknod -m 666 /home/user/.local/var/pmbootstrap/chroot_native/dev/full c 1 7
(007593) [01:56:17] % sudo mknod -m 644 /home/user/.local/var/pmbootstrap/chroot_native/dev/random c 1 8
(007593) [01:56:17] % sudo mknod -m 644 /home/user/.local/var/pmbootstrap/chroot_native/dev/urandom c 1 9
(007593) [01:56:17] % sudo ln -sf /proc/self/fd /home/user/.local/var/pmbootstrap/chroot_native/dev/
(007593) [01:56:17] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/proc
(007593) [01:56:17] % sudo mount --bind /proc /home/user/.local/var/pmbootstrap/chroot_native/proc
(007593) [01:56:17] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/var/cache/apk
(007593) [01:56:17] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_apk_x86_64 /home/user/.local/var/pmbootstrap/chroot_native/var/cache/apk
(007593) [01:56:17] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/appstream-data
(007593) [01:56:17] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_appstream/x86_64/edge /home/user/.local/var/pmbootstrap/chroot_native/mnt/appstream-data
(007593) [01:56:17] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/ccache
(007593) [01:56:17] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_ccache_x86_64 /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/ccache
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/var/cache/distfiles
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_distfiles /home/user/.local/var/pmbootstrap/chroot_native/var/cache/distfiles
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/git
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_git /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/git
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/go
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_go /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/go
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/rust
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_rust /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/rust
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/abuild-config
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/config_abuild /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/abuild-config
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/keys
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/config_apk_keys /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/keys
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/sccache
(007593) [01:56:18] % sudo mount --bind /home/user/.local/var/pmbootstrap/cache_sccache /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/sccache
(007593) [01:56:18] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/netboot
(007593) [01:56:19] % sudo mount --bind /home/user/.local/var/pmbootstrap/images_netboot /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/netboot
(007593) [01:56:19] % sudo mkdir -p /home/user/.local/var/pmbootstrap/packages
(007593) [01:56:19] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/packages
(007593) [01:56:19] % sudo mount --bind /home/user/.local/var/pmbootstrap/packages /home/user/.local/var/pmbootstrap/chroot_native/mnt/pmbootstrap/packages
(007593) [01:56:19] % sudo touch /home/user/.local/var/pmbootstrap/chroot_native/in-pmbootstrap
(007593) [01:56:19] APKINDEX outdated (older than 4h): http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz
(007593) [01:56:19] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
(007593) [01:56:19] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(007593) [01:56:19] APKINDEX outdated (older than 4h): http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(007593) [01:56:19] Update package index for x86_64 (4 file(s))
(007593) [01:56:19] % rm /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_fbf6a6bb13f455234f8410708d660d6939b023713fb7426b3335eb2673669e92
(007593) [01:56:19] Download http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz
(007593) [01:56:20] % sudo cp /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_fbf6a6bb13f455234f8410708d660d6939b023713fb7426b3335eb2673669e92 /home/user/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.bdd0d494.tar.gz
(007593) [01:56:20] % rm /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_b36af8b1d7f948f0d2fcae5bd60c1b876620e69b987bc066e7a90c810687e76f
(007593) [01:56:20] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
(007593) [01:56:22] % sudo cp /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_b36af8b1d7f948f0d2fcae5bd60c1b876620e69b987bc066e7a90c810687e76f /home/user/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.066df28d.tar.gz
(007593) [01:56:22] % rm /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_0999dbfe3755729bd8aa3997d03dbd36a87187a19b61ce5cea2e01671a6305d6
(007593) [01:56:22] Download http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
(007593) [01:56:23] % sudo cp /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_0999dbfe3755729bd8aa3997d03dbd36a87187a19b61ce5cea2e01671a6305d6 /home/user/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.b53994b4.tar.gz
(007593) [01:56:23] % rm /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_6ccac8825a1621fb204ad4b3e645b24ffd8fa9acfe97edc265646cafd18d3e4c
(007593) [01:56:23] Download http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(007593) [01:56:24] % sudo cp /home/user/.local/var/pmbootstrap/cache_http/APKINDEX_6ccac8825a1621fb204ad4b3e645b24ffd8fa9acfe97edc265646cafd18d3e4c /home/user/.local/var/pmbootstrap/cache_apk_x86_64/APKINDEX.30e6f5af.tar.gz
(007593) [01:56:24] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.14.4-r1.apk
(007593) [01:56:26] sigfilename: sbin/apk.static.SIGN.RSA.alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub
(007593) [01:56:26] sigkey: alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub
(007593) [01:56:26] extracted: /tmp/pmbootstrapc6v2f_kgapk
(007593) [01:56:26] extracted: /tmp/pmbootstrapsavyjhrpsig
(007593) [01:56:26] Verify apk.static signature with /home/user/software/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub
(007593) [01:56:26] % openssl dgst -sha1 -verify /home/user/software/pmbootstrap/pmb/data/keys/alpine-devel@lists.alpinelinux.org-6165ee59.rsa.pub -signature /tmp/pmbootstrapsavyjhrpsig /tmp/pmbootstrapc6v2f_kgapk
Verified OK
(007593) [01:56:26] Verify the version reported by the apk.static binary (must match the package version 2.14.4-r1)
(007593) [01:56:26] % /tmp/pmbootstrapc6v2f_kgapk --version
apk-tools 2.14.4, compiled for x86_64.
(007593) [01:56:26] (native) Creating chroot
(007593) [01:56:26] % sudo ln -s -f /var/cache/apk /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/cache
(007593) [01:56:26] % sudo cp /etc/resolv.conf /home/user/.local/var/pmbootstrap/chroot_native/etc/resolv.conf
(007593) [01:56:26] % sudo mkdir -p /home/user/.local/var/pmbootstrap/chroot_native/etc/apk
(007593) [01:56:26] (native) update /etc/apk/repositories
(007593) [01:56:26] % sudo sh -c echo http://mirror.postmarketos.org/postmarketos/master >> /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/repositories
(007593) [01:56:26] % sudo sh -c echo http://dl-cdn.alpinelinux.org/alpine/edge/main >> /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/repositories
(007593) [01:56:26] % sudo sh -c echo http://dl-cdn.alpinelinux.org/alpine/edge/community >> /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/repositories
(007593) [01:56:26] % sudo sh -c echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /home/user/.local/var/pmbootstrap/chroot_native/etc/apk/repositories
(007593) [01:56:26] % sudo mkdir -p /home/user/.local/var/pmbootstrap/tmp
(007593) [01:56:27] % sudo rm -f /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:27] % sudo mkfifo /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:27] % sudo cat /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:27] % sudo sh -c exec 3>/home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo; /home/user/.local/var/pmbootstrap/apk.static --no-progress --progress-fd 3 --root /home/user/.local/var/pmbootstrap/chroot_native --cache-dir /home/user/.local/var/pmbootstrap/cache_apk_x86_64 --initdb --arch x86_64 add alpine-base apk-tools-static --no-interactive ;
(007593) [01:56:27] New background process: pid=7811, output=background
fetch http://mirror.postmarketos.org/postmarketos/master/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
(1/25) Installing alpine-baselayout-data (3.6.5-r0)
(2/25) Installing musl (1.2.5-r1)
(3/25) Installing busybox (1.36.1-r31)
Executing busybox-1.36.1-r31.post-install
(4/25) Installing busybox-binsh (1.36.1-r31)
(5/25) Installing alpine-baselayout (3.6.5-r0)
Executing alpine-baselayout-3.6.5-r0.pre-install
Executing alpine-baselayout-3.6.5-r0.post-install
(6/25) Installing ifupdown-ng (0.12.1-r6)
(7/25) Installing libcap2 (2.70-r0)
(8/25) Installing openrc (0.54-r2)
Executing openrc-0.54-r2.post-install
(9/25) Installing mdev-conf (4.7-r0)
(10/25) Installing busybox-mdev-openrc (1.36.1-r31)
(11/25) Installing alpine-conf (3.18.1-r0)
(12/25) Installing alpine-keys (2.4-r1)
(13/25) Installing alpine-release (3.21.0_alpha20240606-r0)
(14/25) Installing ca-certificates-bundle (20240226-r0)
(15/25) Installing libcrypto3 (3.3.1-r0)
(16/25) Installing libssl3 (3.3.1-r0)
(17/25) Installing ssl_client (1.36.1-r31)
(18/25) Installing zlib (1.3.1-r1)
(19/25) Installing apk-tools (2.14.4-r1)
(20/25) Installing busybox-openrc (1.36.1-r31)
(21/25) Installing busybox-suid (1.36.1-r31)
(22/25) Installing scanelf (1.3.7-r2)
(23/25) Installing musl-utils (1.2.5-r1)
(24/25) Installing alpine-base (3.21.0_alpha20240606-r0)
(25/25) Installing apk-tools-static (2.14.4-r1)
Executing busybox-1.36.1-r31.trigger
OK: 14 MiB in 25 packages
(007593) [01:56:37] (native) % adduser -D pmos -u 12345
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/abuild-config /home/pmos/.abuild ;
(007593) [01:56:38] (native) % chown pmos:pmos /mnt/pmbootstrap/abuild-config
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/ccache /home/pmos/.ccache ;
(007593) [01:56:38] (native) % chown pmos:pmos /mnt/pmbootstrap/ccache
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cache ;
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/go/gocache /home/pmos/.cache/go-build ;
(007593) [01:56:38] (native) % chown pmos:pmos /mnt/pmbootstrap/go/gocache
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/go/pkg ;
(007593) [01:56:38] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/go/gomodcache /home/pmos/go/pkg/mod ;
(007593) [01:56:38] (native) % chown pmos:pmos /mnt/pmbootstrap/go/gomodcache
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/git ;
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/rust/git/db /home/pmos/.cargo/git/db ;
(007593) [01:56:39] (native) % chown pmos:pmos /mnt/pmbootstrap/rust/git/db
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/.cargo/registry ;
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/rust/registry/cache /home/pmos/.cargo/registry/cache ;
(007593) [01:56:39] (native) % chown pmos:pmos /mnt/pmbootstrap/rust/registry/cache
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/rust/registry/index /home/pmos/.cargo/registry/index ;
(007593) [01:56:39] (native) % chown pmos:pmos /mnt/pmbootstrap/rust/registry/index
(007593) [01:56:39] (native) % busybox su pmos -c HOME=/home/pmos ln -s /mnt/pmbootstrap/sccache /home/pmos/.cache/sccache ;
(007593) [01:56:39] (native) % chown pmos:pmos /mnt/pmbootstrap/sccache
(007593) [01:56:39] (native) % apk --no-network upgrade -a
(1/1) Purging ssl_client (1.36.1-r31)
Executing busybox-1.36.1-r31.trigger
OK: 14 MiB in 24 packages
(007593) [01:56:42] % sudo mkdir -p /home/user/.local/var/pmbootstrap/tmp
(007593) [01:56:42] % sudo rm -f /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:42] % sudo mkfifo /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:42] % sudo cat /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(007593) [01:56:42] % sudo sh -c exec 3>/home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo; /home/user/.local/var/pmbootstrap/chroot_native/sbin/apk.static --no-progress --progress-fd 3 --root /home/user/.local/var/pmbootstrap/chroot_native --arch x86_64 --cache-dir /home/user/.local/var/pmbootstrap/cache_apk_x86_64 --repository /home/user/.local/var/pmbootstrap/packages/edge add file unpackbootimg --no-interactive ;
(007593) [01:56:42] New background process: pid=7998, output=background
WARNING: opening /home/user/.local/var/pmbootstrap/packages/edge: No such file or directory
(1/4) Installing ssl_client (1.36.1-r31)
(2/4) Installing libmagic (5.45-r1)
(3/4) Installing file (5.45-r1)
(4/4) Installing mkbootimg-osm0sis (2021.08.06-r0)
Executing busybox-1.36.1-r31.trigger
OK: 23 MiB in 28 packages
(007593) [01:56:45] (native) % rm -r /tmp/bootimg_parser
rm: can't remove '/tmp/bootimg_parser': No such file or directory
(007593) [01:56:45] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(007593) [01:56:45] NOTE: The failed command's output is above the ^^^ line in the log file: /home/user/.local/var/pmbootstrap/log.txt
(007593) [01:56:45] ERROR: Command failed (exit code 1): (native) % rm -r /tmp/bootimg_parser
(007593) [01:56:45] See also: <https://postmarketos.org/troubleshooting>
(007593) [01:56:45] Traceback (most recent call last):
File "/home/user/software/pmbootstrap/pmb/__init__.py", line 87, in main
run_command(args)
File "/home/user/software/pmbootstrap/pmb/commands/__init__.py", line 60, in run_command
getattr(frontend, args.action)(args)
File "/home/user/software/pmbootstrap/pmb/helpers/frontend.py", line 624, in bootimg_analyze
bootimg = pmb.parse.bootimg(args.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/parse/bootimg.py", line 87, in bootimg
temp_path = pmb.chroot.other.tempfolder(Path("/tmp/bootimg_parser"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/chroot/other.py", line 48, in tempfolder
pmb.chroot.root(["rm", "-r", path])
File "/home/user/software/pmbootstrap/pmb/chroot/run.py", line 124, in root
return rootm(
^^^^^^
File "/home/user/software/pmbootstrap/pmb/chroot/run.py", line 108, in rootm
return pmb.helpers.run_core.core(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/helpers/run_core.py", line 437, in core
check_return_code(code, log_message)
File "/home/user/software/pmbootstrap/pmb/helpers/run_core.py", line 277, in check_return_code
raise RuntimeError(f"Command failed (exit code {str(code)}): " + log_message)
RuntimeError: Command failed (exit code 1): (native) % rm -r /tmp/bootimg_parser
Second try
(008661) [01:59:12] Pmbootstrap v3.0.0_alpha (Python 3.12.3 (main, Apr 12 2024, 12:34:12) [GCC 13.2.0])
(008661) [01:59:12] $ pmbootstrap /home/user/.local/bin/pmbootstrap bootimg_analyze /home/user/twrp-3.7.0_9-0-beyondx.img
(008661) [01:59:12] NOTE: You will be prompted for your sudo/doas password, so we can set up a chroot to extract and analyze your boot.img file
(008661) [01:59:12] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git remote -v
(008661) [01:59:12] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git show origin/master:channels.cfg
(008661) [01:59:15] (native) install file unpackbootimg
(008661) [01:59:15] % sudo mkdir -p /home/user/.local/var/pmbootstrap/tmp
(008661) [01:59:15] % sudo rm -f /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(008661) [01:59:15] % sudo mkfifo /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(008661) [01:59:15] % sudo cat /home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo
(008661) [01:59:15] % sudo sh -c exec 3>/home/user/.local/var/pmbootstrap/tmp/apk_progress_fifo; /home/user/.local/var/pmbootstrap/chroot_native/sbin/apk.static --no-progress --progress-fd 3 --root /home/user/.local/var/pmbootstrap/chroot_native --arch x86_64 --cache-dir /home/user/.local/var/pmbootstrap/cache_apk_x86_64 --repository /home/user/.local/var/pmbootstrap/packages/edge add file unpackbootimg --no-interactive ;
(008661) [01:59:15] New background process: pid=8690, output=background
WARNING: opening /home/user/.local/var/pmbootstrap/packages/edge: No such file or directory
OK: 23 MiB in 28 packages
(008661) [01:59:17] (native) % rm -r /tmp/bootimg_parser
rm: can't remove '/tmp/bootimg_parser': No such file or directory
(008661) [01:59:17] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(008661) [01:59:17] NOTE: The failed command's output is above the ^^^ line in the log file: /home/user/.local/var/pmbootstrap/log.txt
(008661) [01:59:17] ERROR: Command failed (exit code 1): (native) % rm -r /tmp/bootimg_parser
(008661) [01:59:17] See also: <https://postmarketos.org/troubleshooting>
(008661) [01:59:17] Traceback (most recent call last):
File "/home/user/software/pmbootstrap/pmb/__init__.py", line 87, in main
run_command(args)
File "/home/user/software/pmbootstrap/pmb/commands/__init__.py", line 60, in run_command
getattr(frontend, args.action)(args)
File "/home/user/software/pmbootstrap/pmb/helpers/frontend.py", line 624, in bootimg_analyze
bootimg = pmb.parse.bootimg(args.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/parse/bootimg.py", line 87, in bootimg
temp_path = pmb.chroot.other.tempfolder(Path("/tmp/bootimg_parser"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/chroot/other.py", line 48, in tempfolder
pmb.chroot.root(["rm", "-r", path])
File "/home/user/software/pmbootstrap/pmb/chroot/run.py", line 124, in root
return rootm(
^^^^^^
File "/home/user/software/pmbootstrap/pmb/chroot/run.py", line 108, in rootm
return pmb.helpers.run_core.core(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/software/pmbootstrap/pmb/helpers/run_core.py", line 437, in core
check_return_code(code, log_message)
File "/home/user/software/pmbootstrap/pmb/helpers/run_core.py", line 277, in check_return_code
raise RuntimeError(f"Command failed (exit code {str(code)}): " + log_message)
RuntimeError: Command failed (exit code 1): (native) % rm -r /tmp/bootimg_parser
After that I made a checkout to 2.3.1 branch and the same command worked, I didn't even have to zap chroots