Advertisement
neochapay

Untitled

Sep 22nd, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. / # umount /target
  2. / # ls /target/
  3. / # DATA_PARTITION=/dev/block/mmcblk0p25
  4. / # rm -rf /data
  5. rm: can't remove '/data': Device or resource busy
  6. / # rm -rf /target
  7. / #
  8. / # mkdir /data
  9. mkdir: can't create directory '/data': File exists
  10. / # mkdir /target
  11. / #
  12. / # mount $DATA_PARTITION /data
  13. mount: mounting /dev/block/mmcblk0p25 on /data failed: Device or resource busy
  14. / # mount --bind /data/.stowaways/${DEFAULT_OS} /target
  15. mount: mounting /data/.stowaways/ on /target failed: No such file or directory
  16. / # mkdir /target/data # in new fs
  17. / # mount --bind /data /target/data
  18. / # switch_root /target /lib/systemd/systemd
  19. BusyBox v1.21.1 (2016-05-12 01:27:53 UTC) multi-call binary.
  20.  
  21. Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS]
  22.  
  23. Free initramfs and switch to another root fs:
  24. chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /,
  25. execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint.
  26.  
  27. -c DEV Reopen stdio to DEV after switch
  28.  
  29. / #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement