[3.0.0_alpha] `pmbootstrap install; pmbootstrap install --sdcard` fails
With pmbootstrap from master branch I get:
$ pmbootstrap install
[ ... ] <- success
$ pmbootstrap install --sdcard /dev/sdb
[ ... ]
[12:31:14] *** (3/4) PREPARE INSTALL BLOCKDEVICE ***
[12:31:15] (native) mount /dev/install (host: /dev/sdb)
[12:31:15] EVERYTHING ON /dev/sdb WILL BE ERASED! CONTINUE? (y/n) [n]: y
[12:31:20] (native) partition /dev/install (boot: 256M, reserved: 0M, root: the rest)
[12:31:24] Mounting partitions of /dev/sdb inside the chroot
[12:31:24] (native) install e2fsprogs
[12:31:25] (native) format /dev/installp2 (root, ext4)
[12:31:25] NOTE: The failed command's output is above the ^^^ line in the log file: /home/grimler/.local/var/pmbootstrap/log.txt
[12:31:25] ERROR: Command failed (exit code 1): (native) % mkfs.ext4 -O ^metadata_csum -F -q -L pmOS_root /dev/installp2
[12:31:25] 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: 3.0.0_alpha
and in log:
(057501) [12:31:24] Mounting partitions of /dev/sdb inside the chroot
(057501) [12:31:24] (native) install e2fsprogs
(057501) [12:31:24] % sudo rm -f /home/grimler/.local/var/pmbootstrap/chroot_native/tmp/apk_progress_fifo
(057501) [12:31:24] (native) % mkfifo tmp/apk_progress_fifo
(057501) [12:31:24] (native) % cat tmp/apk_progress_fifo
(057501) [12:31:24] (native) % sh -c exec 3>tmp/apk_progress_fifo; apk --no-progress --progress-fd 3 --repository /mnt/pmbootstrap/packages/edge add e2fsprogs --no-interactive ;
(057501) [12:31:24] New background process: pid=59817, output=background
WARNING: opening /mnt/pmbootstrap/packages/edge: No such file or directory
OK: 501 MiB in 189 packages
(057501) [12:31:25] (native) format /dev/installp2 (root, ext4)
(057501) [12:31:25] (native) % mkfs.ext4 -O ^metadata_csum -F -q -L pmOS_root /dev/installp2
mkfs.ext4: No such device or address while trying to determine filesystem size
(057501) [12:31:25] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(057501) [12:31:25] NOTE: The failed command's output is above the ^^^ line in the log file: /home/grimler/.local/var/pmbootstrap/log.txt
(057501) [12:31:25] ERROR: Command failed (exit code 1): (native) % mkfs.ext4 -O ^metadata_csum -F -q -L pmOS_root /dev/installp2
(057501) [12:31:25] See also: <https://postmarketos.org/troubleshooting>
(057501) [12:31:25] Traceback (most recent call last):
File "/home/grimler/projects/pmbootstrap/pmb/__init__.py", line 105, in main
run_command(args)
File "/home/grimler/projects/pmbootstrap/pmb/commands/__init__.py", line 61, in run_command
getattr(frontend, args.action)(args)
File "/home/grimler/projects/pmbootstrap/pmb/helpers/frontend.py", line 409, in install
pmb.install.install(args)
File "/home/grimler/projects/pmbootstrap/pmb/install/_install.py", line 1384, in install
install_system_image(args, 0, chroot, step, steps, split=args.split, disk=args.disk)
File "/home/grimler/projects/pmbootstrap/pmb/install/_install.py", line 874, in install_system_image
pmb.install.format(args, layout, boot_label, root_label, disk)
File "/home/grimler/projects/pmbootstrap/pmb/install/format.py", line 202, in format
format_and_mount_root(args, root_dev, root_label, disk)
File "/home/grimler/projects/pmbootstrap/pmb/install/format.py", line 175, in format_and_mount_root
pmb.chroot.root(mkfs_root_args + [device])
File "/home/grimler/projects/pmbootstrap/pmb/chroot/run.py", line 124, in root
return rootm(
^^^^^^
File "/home/grimler/projects/pmbootstrap/pmb/chroot/run.py", line 108, in rootm
return pmb.helpers.run_core.core(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/grimler/projects/pmbootstrap/pmb/helpers/run_core.py", line 434, in core
check_return_code(code, log_message)
File "/home/grimler/projects/pmbootstrap/pmb/helpers/run_core.py", line 274, in check_return_code
raise RuntimeError(f"Command failed (exit code {str(code)}): " + log_message)
RuntimeError: Command failed (exit code 1): (native) % mkfs.ext4 -O ^metadata_csum -F -q -L pmOS_root /dev/installp2
It works if I pmbootstrap zap
and then run pmbootstrap install --sdcard /dev/sdb
, without pmbootstrap install
first.