[systemd-devel] [systemd-commits] man/systemd-nspawn.xml

Lennart Poettering lennart at poettering.net
Fri Dec 13 06:36:30 PST 2013


On Thu, 12.12.13 20:20, Zbigniew Jędrzejewski-Szmek (zbyszek at kemper.freedesktop.org) wrote:

>  man/systemd-nspawn.xml |   11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> New commits:
> commit f9f4dd51bdb016bab84f7fb3cf47a2ad102b4c76
> Author: Zbigniew J??drzejewski-Szmek <zbyszek at in.waw.pl>
> Date:   Thu Dec 12 23:14:48 2013 -0500
> 
>     man: add another nspawn example
>     
>     Taken from https://bugs.freedesktop.org/show_bug.cgi?id=68369.
> 
> diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml
> index 75d2e6d..6b7ba98 100644
> --- a/man/systemd-nspawn.xml
> +++ b/man/systemd-nspawn.xml
> @@ -432,6 +432,17 @@
>          </refsect1>
>  
>          <refsect1>
> +                <title>Example 5</title>
> +
> +                <programlisting># btrfs subvolume snapshot / /.tmp
> +# systemd-nspawn --private-network -D /.tmp -b</programlisting>
> +
> +                <para>This runs a copy of the host system in a
> +                btrfs snapshot.</para>
> +        </refsect1>

BTW, I think it would be cool to add a "--snapshot" switch to systemd
for this, which does this automatically and optionally drops all changes
afterwards... That would be fantastic for testing!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list