Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ # echo "switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg" >/init-ctl/stdin
- ~ # + read IN
- + [ switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg = continue ]
- + switch_root /target /target/sbin/init --log-level=debug --log-target=kmsg
- BusyBox v1.21.1-jb static (2014-01-28 17:46 +0000) multi-call binary.
- Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
- Free initramfs and switch to another root fs:
- chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
- execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
- -c DEV Reopen stdio to DEV after switch
- + read IN
- + :
- ~ # echo "switch_root /target /init-debug" >/init-ctl/stdin
- ~ # + read IN
- + [ switch_root /target /init-debug = continue ]
- + switch_root /target /init-debug
- BusyBox v1.21.1-jb static (2014-01-28 17:46 +0000) multi-call binary.
- Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
- Free initramfs and switch to another root fs:
- chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
- execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
- -c DEV Reopen stdio to DEV after switch
- + read IN
- + :
- ~ # mount
- rootfs on / type rootfs (rw)
- devtmpfs on /dev type devtmpfs (rw,relatime,size=413116k,nr_inodes=103279,mode=755)
- devpts on /dev/pts type devpts (rw,relatime,mode=600)
- sysfs on /sys type sysfs (rw,relatime)
- proc on /proc type proc (rw,relatime)
- /dev/mmcblk0p39 on /data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
- /dev/mmcblk0p39 on /target type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
- /dev/mmcblk0p39 on /target/data type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
- ~ # ls /target/init-debug
- /target/init-debug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement