[lxc-devel] [PATCH] oracle template: fix sudo lxc-create on ubuntu
Stéphane Graber
stgraber at ubuntu.com
Mon Jan 28 16:49:57 UTC 2013
On 01/25/2013 05:41 PM, Dwight Engen wrote:
> rpm on ubuntu puts the rpm db under $HOME, which wont be /root if
> sudo is used
>
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
Pushed to staging. Thanks
> ---
> templates/lxc-oracle.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/templates/lxc-oracle.in b/templates/lxc-oracle.in
> index 2402cc5..95c6275 100644
> --- a/templates/lxc-oracle.in
> +++ b/templates/lxc-oracle.in
> @@ -487,7 +487,7 @@ container_rootfs_create()
> # these distributions put the rpm database in a place the guest is
> # not expecting it, so move it
> if [ $host_distribution = "Ubuntu" ]; then
> - mv $container_rootfs/root/.rpmdb/* $container_rootfs/var/lib/rpm
> + mv $container_rootfs/$HOME/.rpmdb/* $container_rootfs/var/lib/rpm
> fi
>
> # if the native rpm created the db with Hash version 9, we need to
>
--
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: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130128/bda59d18/attachment.pgp>
More information about the lxc-devel
mailing list