[lxc-devel] [PATCH 7/7] lxc-opensuse: print \n from one echo
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Feb 19 19:47:26 UTC 2013
Quoting Jiri Slaby (jslaby at suse.cz):
> Otherwise the output looks like:
> Copying rootfs to /var/lib/lxc/tomcat/rootfs ...Please change
> root-password !
> ---
> templates/lxc-opensuse.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in
> index 1829ddf..d8aa2a1 100644
> --- a/templates/lxc-opensuse.in
> +++ b/templates/lxc-opensuse.in
> @@ -188,7 +188,7 @@ copy_opensuse()
> rootfs=$3
>
> # make a local copy of the mini opensuse
> - echo -n "Copying rootfs to $rootfs ..."
> + echo "Copying rootfs to $rootfs ..."
> mkdir -p $rootfs
> rsync -Ha $cache/rootfs-$arch/ $rootfs/ || return 1
Or, I suppose you could make it
rsync -Ha $cache/rootfs-$arch/ $rootfs/ || {echo "Failed"}; return 1;}
echo "done"
but either way...
Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>
> return 0
> --
> 1.8.1.2
>
>
More information about the lxc-devel
mailing list