Commit 1ff8a460 by Dwight Engen Committed by Stéphane Graber

oracle template: fix sudo lxc-create on ubuntu

rpm on ubuntu puts the rpm db under $HOME, which wont be /root if sudo is used Signed-off-by: 's avatarDwight Engen <dwight.engen@oracle.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent ce951132
...@@ -487,7 +487,7 @@ container_rootfs_create() ...@@ -487,7 +487,7 @@ container_rootfs_create()
# these distributions put the rpm database in a place the guest is # these distributions put the rpm database in a place the guest is
# not expecting it, so move it # not expecting it, so move it
if [ $host_distribution = "Ubuntu" ]; then 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 fi
# if the native rpm created the db with Hash version 9, we need to # if the native rpm created the db with Hash version 9, we need to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment