pmbootstrap `-b caleb/typed-suffix` branch / systemd `pmbootstrap install --fde --filesystem btrfs` error
@calebccff Here's the requested issue report. Thanks so much for the great work, I love PMOS and the change to systemd!
Here is the pmbootstrap log
:
❯ pmbootstrap log
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/proc
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/sccache
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/rust
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/packages
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/netboot
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/go
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/git
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/ccache
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/pmbootstrap/abuild-config
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/mnt/appstream-data
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/etc/apk/keys
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/dev/shm
(352332) [12:22:30] % sudo umount /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita/dev
(352332) [12:22:30] % sudo du -ks /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita
3038856 /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita
(352332) [12:22:30] (native) % busybox su pmos -c HOME=/home/pmos mkdir -p /home/pmos/rootfs ;
(352332) [12:22:30] (native) create oneplus-fajita.img (3867M)
(352332) [12:22:30] (native) % truncate -s 3867M /home/pmos/rootfs/oneplus-fajita.img
(352332) [12:22:30] (native) mount /dev/install (oneplus-fajita.img)
(352332) [12:22:30] (native) mount /home/pmos/rootfs/oneplus-fajita.img (loop)
(352332) [12:22:30] % sudo touch /var/home/dperson/.local/var/pmbootstrap/chroot_native/dev/loop-control
(352332) [12:22:30] % sudo mount --bind /dev/loop-control /var/home/dperson/.local/var/pmbootstrap/chroot_native/dev/loop-control
(352332) [12:22:30] (native) % losetup -f /home/pmos/rootfs/oneplus-fajita.img -b 4096
losetup: /home/pmos/rootfs/oneplus-fajita.img: failed to set up loop device: No such file or directory
(352332) [12:22:31] (native) % losetup --json --list
{
"loopdevices": [
]
}
(352332) [12:22:31] ERROR: Failed to find loop device for /home/pmos/rootfs/oneplus-fajita.img
(352332) [12:22:31] See also: <https://postmarketos.org/troubleshooting>
(352332) [12:22:31] Traceback (most recent call last):
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/__init__.py", line 82, in main
run_command(args)
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/commands/__init__.py", line 58, in run_command
getattr(frontend, args.action)(args)
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/helpers/frontend.py", line 373, in install
pmb.install.install(args)
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/_install.py", line 1324, in install
install_system_image(args, 0, chroot, step, steps,
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/_install.py", line 824, in install_system_image
pmb.install.blockdevice.create(args, size_boot, size_root,
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/blockdevice.py", line 143, in create
create_and_mount_image(args, size_boot, size_root, size_reserve,
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/blockdevice.py", line 124, in create_and_mount_image
pmb.install.losetup.mount(img_path)
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/losetup.py", line 50, in mount
return device_by_back_file(img_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/home/dperson/.cache/venv/pmb/pmbootstrap/pmb/install/losetup.py", line 69, in device_by_back_file
raise RuntimeError(f"Failed to find loop device for {back_file}")
RuntimeError: Failed to find loop device for /home/pmos/rootfs/oneplus-fajita.img
(362278) [12:31:20] Pmbootstrap v2.3.1 (Python 3.12.3 (main, Apr 17 2024, 00:00:00) [GCC 14.0.1 20240411 (Red Hat 14.0.1-0)])
(362278) [12:31:20] $ pmbootstrap /var/home/dperson/.cache/venv/pmb/bin/pmbootstrap log
(362278) [12:31:20] % tail -n 60 -F /var/home/dperson/.local/var/pmbootstrap/log.txt
(362278) [12:31:20] *** output passed to pmbootstrap stdout, not to this log ***
Here is the output for the pmbootstrap install --fde --filesystem btrfs
:
❯ pmbootstrap install --fde --filesystem btrfs
[10:42:24] *** (1/4) PREPARE NATIVE CHROOT ***
[10:42:25] Update package index for x86_64 (4 file(s))
[10:42:27] Download http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-static-2.14.4-r0.apk
[10:42:27] (native) Creating chroot
[10:42:34] (native) install cryptsetup util-linux parted
[10:42:37] *** (2/4) CREATE DEVICE ROOTFS ("oneplus-fajita") ***
[10:42:38] (native) install qemu-aarch64
[10:42:39] Register qemu binfmt (aarch64)
[10:42:39] (rootfs_oneplus-fajita) Creating chroot
[10:42:46] (rootfs_oneplus-fajita) install postmarketos-base device-oneplus-fajita postmarketos-ui-gnome-mobile postmarketos-base-ui-wifi-iwd device-oneplus-fajita-nonfree-firmware 7zip bash bat bind-tools btop chezmoi cifs-utils curl delta distrobox eyed3 eza fd ffmpeg firefox flatpak font-jetbrains-mono-nerd font-nerd-fonts-symbols fortune fping freeipmi fzf gcc git github-cli gnupg graphicsmagick grep id3lib iotop iptraf-ng jpegoptim jq lame libjpeg-turbo-utils libxslt make neovim nmap nmap-ncat npm optipng podman postmarketos-release-upgrade powertop py3-pip python3 restic ripgrep rsync sharutils speedtest-cli sqlite sysstat tmux tio traceroute unzip vorbisgain vorbis-tools wl-clipboard yt-dlp zoxide zsh zstd unl0kr calls chatty gnome-extensions-app mobile-config-firefox portfolio postmarketos-default-camera postmarketos-tweaks postmarketos-welcome postprocessd ttyescape gnome-mobile-extensions-app evince firefox-esr flatpak font-noto font-noto-emoji gnome-calculator gnome-calendar gnome-clocks gnome-console gnome-contacts gnome-maps gnome-software gnome-software-plugin-apk gnome-text-editor gnome-weather lollypop loupe font-twemoji
[10:48:14] NOTE: The failed command's output is above the ^^^ line in the log file: /var/home/dperson/.local/var/pmbootstrap/log.txt
[10:48:14] ERROR: Command failed (exit code 1): /var/home/dperson/.local/var/pmbootstrap/chroot_native/sbin/apk.static --root /var/home/dperson/.local/var/pmbootstrap/chroot_rootfs_oneplus-fajita --arch aarch64 --cache-dir /var/home/dperson/.local/var/pmbootstrap/cache_apk_aarch64 --repository /var/home/dperson/.local/var/pmbootstrap/packages/edge add postmarketos-base device-oneplus-fajita postmarketos-ui-gnome-mobile postmarketos-base-ui-wifi-iwd device-oneplus-fajita-nonfree-firmware 7zip bash bat bind-tools btop chezmoi cifs-utils curl delta distrobox eyed3 eza fd ffmpeg firefox flatpak font-jetbrains-mono-nerd font-nerd-fonts-symbols fortune fping freeipmi fzf gcc git github-cli gnupg graphicsmagick grep id3lib iotop iptraf-ng jpegoptim jq lame libjpeg-turbo-utils libxslt make neovim nmap nmap-ncat npm optipng podman postmarketos-release-upgrade powertop py3-pip python3 restic ripgrep rsync sharutils speedtest-cli sqlite sysstat tmux tio traceroute unzip vorbisgain vorbis-tools wl-clipboard yt-dlp zoxide zsh zstd unl0kr calls chatty gnome-extensions-app mobile-config-firefox portfolio postmarketos-default-camera postmarketos-tweaks postmarketos-welcome postprocessd ttyescape gnome-mobile-extensions-app evince firefox-esr flatpak font-noto font-noto-emoji gnome-calculator gnome-calendar gnome-clocks gnome-console gnome-contacts gnome-maps gnome-software gnome-software-plugin-apk gnome-text-editor gnome-weather lollypop loupe font-twemoji --no-interactive
[10:48:14] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.
Before you report this error, ensure that pmbootstrap is up to date.
Find the latest version here: https://gitlab.postmarketos.org/postmarketos/pmbootstrap/-/tags
Your version: 2.3.1
Edited by Administrator