PageRenderTime 61ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 0ms

/util-linux/sys-utils/switch_root.8

https://review.tizen.org/git/
Unknown | 48 lines | 44 code | 4 blank | 0 comment | 0 complexity | 295bae7992599ac710fbb666b11856e7 MD5 | raw file
Possible License(s): GPL-3.0, AGPL-3.0, GPL-2.0, MPL-2.0, JSON, WTFPL, CC-BY-SA-4.0, CC-BY-3.0, BSD-3-Clause, LGPL-2.0, MPL-2.0-no-copyleft-exception, AGPL-1.0, 0BSD, Zlib, Unlicense, BSD-2-Clause, Apache-2.0, LGPL-3.0, ISC, MIT, CC-BY-SA-3.0, CC0-1.0, LGPL-2.1
  1. .\" Karel Zak <kzak@redhat.com>
  2. .TH SWITCH_ROOT 8 "June 2009" "Linux"
  3. .SH NAME
  4. switch_root \- switch to another filesystem as the root of the mount tree.
  5. .SH SYNOPSIS
  6. .B switch_root
  7. .RB [ \-hV ]
  8. .LP
  9. .B switch_root
  10. .I newroot
  11. .I init
  12. .RI [ arg ...]
  13. .SH DESCRIPTION
  14. .B switch_root
  15. moves already mounted /proc, /dev and /sys to
  16. .I newroot
  17. and makes
  18. .I newroot
  19. the new root filesystem and starts
  20. .I init
  21. process.
  22. .B WARNING: switch_root removes recursively all files and directories on the current root filesystem.
  23. .SH OPTIONS
  24. .IP "\fB\-h, \-\-help\fP"
  25. show help and exit
  26. .IP "\fB\-V, \-\-version\fP"
  27. show version number and exit
  28. .SH RETURN VALUE
  29. .B switch_root
  30. returns 0 on success and 1 on failure.
  31. .SH "SEE ALSO"
  32. .BR mount (8)
  33. .BR chroot (2)
  34. .BR init (8)
  35. .BR mkinitrd (8)
  36. .SH AUTHORS
  37. .nf
  38. Peter Jones <pjones@redhat.com>
  39. Jeremy Katz <katzj@redhat.com>
  40. Karel Zak <kzak@redhat.com>
  41. .fi
  42. .SH AVAILABILITY
  43. The switch_root command is part of the util-linux-ng package and is available from
  44. ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.