[lxc-devel] [PATCH] lxc-alpine: avoid GNU BRE extensions for better portability

Stéphane Graber stgraber at ubuntu.com
Mon Sep 28 19:50:15 UTC 2015


On Mon, Sep 28, 2015 at 02:49:14PM +0300, Kaarle Ritvanen wrote:
> Signed-off-by: Kaarle Ritvanen <kaarle.ritvanen at datakunkku.fi>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  templates/lxc-alpine.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
> index 6dcc51b..d62f891 100644
> --- a/templates/lxc-alpine.in
> +++ b/templates/lxc-alpine.in
> @@ -109,7 +109,7 @@ install_alpine() {
>      else
>          cp /etc/apk/repositories "$rootfs"/etc/apk/repositories || return 1
>          if [ -n "$release" ]; then
> -            sed -i -e "s:/[^/]\+/\([^/]\+\)$:/$release/\1:" \
> +            sed -E -i "s:/[^/]+/([^/]+)$:/$release/\\1:" \
>                  "$rootfs"/etc/apk/repositories
>          fi
>      fi
> -- 
> 2.1.0
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150928/ae1d3c46/attachment.sig>


More information about the lxc-devel mailing list