12-11-2020, 11:39 PM
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