Skip to content

Instantly share code, notes, and snippets.

@jja2000
Created September 10, 2017 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jja2000/c283072c8c3f6f94f78d80c82d00f4e8 to your computer and use it in GitHub Desktop.
Save jja2000/c283072c8c3f6f94f78d80c82d00f4e8 to your computer and use it in GitHub Desktop.
pmOS error log #10
(009701) [14:06:40] (native) create asus-tf700t.img (759M)
(009701) [14:06:40] WARNING: Make sure, that your target device's partition table has allocated at least 759M as system partition!
[14:06:40] Continue? (y/n) [y] y
(009701) [15:12:30] (native) % su user -c 'mkdir -p /home/user/rootfs'
(009701) [15:12:34] (native) % truncate -s 759M /home/user/rootfs/asus-tf700t.img
(009701) [15:12:34] (native) mount /dev/install (asus-tf700t.img)
(009701) [15:12:34] (native) mount /home/user/rootfs/asus-tf700t.img (loop)
(009701) [15:12:34] % sudo touch /home/jja2000/.local/var/pmbootstrap/chroot_native//dev/loop-control
(009701) [15:12:34] % sudo mount --bind /dev/loop-control /home/jja2000/.local/var/pmbootstrap/chroot_native//dev/loop-control
(009701) [15:12:34] (native) % losetup -f /home/user/rootfs/asus-tf700t.img
losetup: /home/user/rootfs/asus-tf700t.img: failed to set up loop device: No such file or directory
(009701) [15:12:34] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(009701) [15:12:34] NOTE: The failed command's output is above the ^^^ line in the logfile: /home/jja2000/.local/var/pmbootstrap/log.txt
(009701) [15:12:34] ERROR: Command failed: (native) % losetup -f /home/user/rootfs/asus-tf700t.img
(009701) [15:12:34] Run 'pmbootstrap log' for details.
(009701) [15:12:34] See also: <https://postmarketos.org/troubleshooting>
(009701) [15:12:34] Traceback (most recent call last):
File "/home/jja2000/gitzooi/pmbootstrap/pmb/helpers/run.py", line 45, in core
stderr=args.logfd)
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '/bin/sh', '-c', "env -i CHARSET=UTF-8 PATH=/usr/lib/ccache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin SHELL=/bin/ash HISTFILE=~/.ash_history /usr/sbin/chroot /home/jja2000/.local/var/pmbootstrap/chroot_native sh -c 'cd /;losetup -f /home/user/rootfs/asus-tf700t.img'"]' returned non-zero exit status 1
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/jja2000/gitzooi/pmbootstrap/pmb/__init__.py", line 53, in main
getattr(frontend, args.action)(args)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/helpers/frontend.py", line 136, in install
pmb.install.install(args)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/install/install.py", line 285, in install
install_system_image(args)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/install/install.py", line 164, in install_system_image
pmb.install.blockdevice.create(args, size_image)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/install/blockdevice.py", line 101, in create
create_and_mount_image(args, size)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/install/blockdevice.py", line 84, in create_and_mount_image
pmb.install.losetup.mount(args, img_path)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/install/losetup.py", line 44, in mount
pmb.chroot.root(args, ["losetup", "-f", img_path])
File "/home/jja2000/gitzooi/pmbootstrap/pmb/chroot/root.py", line 86, in root
return_stdout, check)
File "/home/jja2000/gitzooi/pmbootstrap/pmb/helpers/run.py", line 58, in core
raise RuntimeError("Command failed: " + log_message) from exc
RuntimeError: Command failed: (native) % losetup -f /home/user/rootfs/asus-tf700t.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment