Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. ~ # echo "switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg" >/init-ctl/stdin
  2. ~ # + read IN
  3. + [ switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg = continue ]
  4. + switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg
  5. BusyBox v1.21.1-jb static (2014-01-28 17:46 +0000) multi-call binary.
  6.  
  7. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
  8.  
  9. Free initramfs and switch to another root fs:
  10. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  11. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  12.  
  13.         -c DEV  Reopen stdio to DEV after switch
  14.  
  15. + read IN
  16. + :
  17.  
  18.  
  19.  
  20. ~ # echo "switch_root /target /init-debug" >/init-ctl/stdin
  21. ~ # + read IN
  22. + [ switch_root /target /init-debug = continue ]
  23. + switch_root /target /init-debug
  24. BusyBox v1.21.1-jb static (2014-01-28 17:46 +0000) multi-call binary.
  25.  
  26. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
  27.  
  28. Free initramfs and switch to another root fs:
  29. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  30. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  31.  
  32.         -c DEV  Reopen stdio to DEV after switch
  33.  
  34. + read IN
  35. + :
  36.  
  37.  
  38.  
  39. ~ # mount
  40. rootfs on / type rootfs (rw)
  41. devtmpfs on /dev type devtmpfs (rw,relatime,size=413116k,nr_inodes=103279,mode=755)
  42. devpts on /dev/pts type devpts (rw,relatime,mode=600)
  43. sysfs on /sys type sysfs (rw,relatime)
  44. proc on /proc type proc (rw,relatime)
  45. /dev/mmcblk0p39 on /data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
  46. /dev/mmcblk0p39 on /target type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
  47. /dev/mmcblk0p39 on /target/data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
  48.  
  49.  
  50. ~ # ls /target/init-debug
  51. /target/init-debug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement