PINE64
pmbootstrap error - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: pmbootstrap error (/showthread.php?tid=12473)



pmbootstrap error - lat - 12-11-2020

I attempted to install pmos to SD card using pmbootstrap.  I tried 'shelli' and 'none' for UI.  I tried both on archlinux laptop and on pinephone running archlinux (from eMMC).  Below is the error I'm getting in all cases.  Any ideas how to deal with this error?  Could this error be because of archlinux?

Code:
(003971) [05:17:08] *** (4/4) FILL INSTALL BLOCKDEVICE ***
(003971) [05:17:08] (native) copy rootfs_pine64-pinephone to /mnt/install/
(003971) [05:17:08] % sudo mkdir -p /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/rootfs_pine64-pinephone
(003971) [05:17:08] % sudo mount --bind /home/alarm/.local/var/pmbootstrap/chroot_rootfs_pine64-pinephone /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/rootfs_pine64-pinephone
(003971) [05:17:08] (native) % cd /mnt/rootfs_pine64-pinephone; cp -a root sys dev var usr sbin proc mnt opt run lib media etc tmp boot srv bin /mnt/install/
(003971) [05:17:23] % sudo mkdir /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/home
(003971) [05:17:28] % sudo cp -a /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/etc/skel /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/home/j
cp: cannot stat '/home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/etc/skel': No such file or directory
(003971) [05:17:28] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(003971) [05:17:28] NOTE: The failed command's output is above the ^^^ line in the log file: /home/alarm/.local/var/pmbootstrap/log.txt
(003971) [05:17:28] ERROR: Command failed: % sudo cp -a /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/etc/skel /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/home/j
(003971) [05:17:28] See also: <https://postmarketos.org/troubleshooting>
(003971) [05:17:28] Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pmb/__init__.py", line 49, in main
    getattr(frontend, args.action)(args)
  File "/usr/lib/python3.9/site-packages/pmb/helpers/frontend.py", line 269, in install
    pmb.install.install(args)
  File "/usr/lib/python3.9/site-packages/pmb/install/_install.py", line 736, in install
    install_system_image(args, 0, f"rootfs_{args.device}", 3, steps,
  File "/usr/lib/python3.9/site-packages/pmb/install/_install.py", line 495, in install_system_image
    create_home_from_skel(args)
  File "/usr/lib/python3.9/site-packages/pmb/install/_install.py", line 181, in create_home_from_skel
    pmb.helpers.run.root(args, ["cp", "-a", rootfs + "/etc/skel", homedir])
  File "/usr/lib/python3.9/site-packages/pmb/helpers/run.py", line 76, in root
    return user(args, cmd, working_dir, output, output_return, check, env,
  File "/usr/lib/python3.9/site-packages/pmb/helpers/run.py", line 58, in user
    return pmb.helpers.run_core.core(args, msg, cmd, working_dir, output,
  File "/usr/lib/python3.9/site-packages/pmb/helpers/run_core.py", line 285, in core
    raise RuntimeError("Command failed: " + log_message)
RuntimeError: Command failed: % sudo cp -a /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/etc/skel /home/alarm/.local/var/pmbootstrap/chroot_native/mnt/install/home/j



RE: pmbootstrap error - lat - 12-13-2020

Choosing stable rather than edge worked successfully.  Marking thread as solved.

However, I'd prefer to use edge in the future.  I hope the problem that I've encountered above will be gone by then.  My initial choice against stable was because it's version number V.20.05 looked like May-2020, half year ago, but I don't know for sure.  Perhaps, someone can confirm this or correct me.  Maybe this stable version is current, judging from apk upgrade output 'OK: 211 MiB in 184 packages' and nothing else to do.

Anyways, I'm looking forward to exloring pmos for the first time!  Glad that the original error in this thread has not deterred me, especially that I found pmos-based sxmo refreshingly exciting.


RE: pmbootstrap error - lat - 12-22-2020

The errors are gone with pmbootstrap version 1.27.0  Smile