Re: [PATCH 9/9] switch_root: add man page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/09/2009 04:48 PM, Karel Zak wrote:
> Signed-off-by: Karel Zak <kzak@xxxxxxxxxx>

Thanks for writing this!  Definitely:

Acked-by: Peter Jones <pjones@xxxxxxxxxx>

> ---
>  sys-utils/.gitignore    |    1 +
>  sys-utils/Makefile.am   |    1 +
>  sys-utils/switch_root.8 |   35 +++++++++++++++++++++++++++++++++++
>  3 files changed, 37 insertions(+), 0 deletions(-)
>  create mode 100644 sys-utils/switch_root.8
> 
> diff --git a/sys-utils/.gitignore b/sys-utils/.gitignore
> index 6f0be71..aaadf80 100644
> --- a/sys-utils/.gitignore
> +++ b/sys-utils/.gitignore
> @@ -37,6 +37,7 @@ sparc32bash.8
>  sparc64.8
>  sparc.8
>  switch_root
> +switch_root.8
>  tunelp
>  vidmode.8
>  x86_64.8
> diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am
> index 6700677..27f85b8 100644
> --- a/sys-utils/Makefile.am
> +++ b/sys-utils/Makefile.am
> @@ -30,6 +30,7 @@ endif
>  
>  if BUILD_SWITCH_ROOT
>  sbin_PROGRAMS += switch_root
> +dist_man_MANS += switch_root.8
>  endif
>  
>  if BUILD_ARCH
> diff --git a/sys-utils/switch_root.8 b/sys-utils/switch_root.8
> new file mode 100644
> index 0000000..b22bfa1
> --- /dev/null
> +++ b/sys-utils/switch_root.8
> @@ -0,0 +1,35 @@
> +.\" Karel Zak <kzak@xxxxxxxxxx>
> +.TH SWITCH_ROOT 8 "June 2009" "Linux"
> +.SH NAME
> +switch_root \- switch to another filesystem as the root of the mount tree.
> +.SH SYNOPSIS
> +.B switch_root
> +.I newroot
> +.I init
> +.RB [ \fIarg\fP
> +.RB ...]
> +.SH DESCRIPTION
> +.B switch_root
> +moves already mounted /proc, /dev and /sys to 
> +.I newroot
> +and makes 
> +.I newroot
> +the new root filesystem and starts
> +.I init
> +process.
> +
> +.B WARNING: switch_root removes recursively all files and directories on the current root filesystem.
> +.SH "SEE ALSO"
> +.BR mount (8)
> +.BR chroot (2)
> +.BR init (8)
> +.BR mkinitrd (8)
> +.SH AUTHORS
> +.nf
> +Peter Jones <pjones@xxxxxxxxxx>
> +Jeremy Katz <katzj@xxxxxxxxxx>
> +Karel Zak <kzak@xxxxxxxxxx>
> +.fi
> +.SH AVAILABILITY
> +The switch_root command is part of the util-linux-ng package and is available from
> +ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.


-- 
        Peter

I hope you know that this will go down on your permanent record.
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux