Advertisement
neochapay

Untitled

Sep 22nd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. / # rm target/init-stderrout
  2. / # exec switch_root /target /lib/systemd/systemd &> /target/init-stderrout 2>&1
  3. Connection closed by foreign host.
  4. root@inp1wst007:/home/OMP/s.chupligin/work/y6/cm12boot# telnet 192.168.2.15 2323
  5. Trying 192.168.2.15...
  6. Connected to 192.168.2.15.
  7. Escape character is '^]'.
  8.  
  9. Welcome to the Mer/SailfishOS Boat loader debug init system.
  10.  
  11. Log so far is in /init.log
  12.  
  13. To make post-switch_root halt before starting systemd, perform:
  14. touch /target/init_enter_debug2
  15. (When run post-switch_root, telnet is on port 2323, not 23)
  16.  
  17. You may inject commands into init shell process (PID 1):
  18.  
  19. To see output of commands as they're injected:
  20. tail -f /init.log &
  21. To run a command:
  22. echo "ls -l /" >/init-ctl/stdin
  23.  
  24. (Be careful if you experiment with exec as you need to terminate
  25. daemons and disable busybox hotplug handling)
  26.  
  27. To allow init to continue:
  28. echo "continue" >/init-ctl/stdin
  29.  
  30. In order to work safely with the device's mmc you should
  31. echo "umount_stowaways" >/init-ctl/stdin
  32.  
  33. Then you can mount and modify exported mass storage on host. When done
  34. echo "mount_stowaways" >/init-ctl/stdin
  35.  
  36.  
  37. / # cat target/init-
  38. init-ctl/ init-debug init-stderrout
  39. / # cat target/init-stderrout
  40. BusyBox v1.21.1 (2016-05-12 01:27:53 UTC) multi-call binary.
  41.  
  42. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
  43.  
  44. Free initramfs and switch to another root fs:
  45. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  46. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  47.  
  48. -c DEV Reopen stdio to DEV after switch
  49.  
  50. / #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement