[Bug 1166870] [NEW] lxc-clone fails silently
James Hunt
1166870 at bugs.launchpad.net
Tue Apr 9 15:47:14 UTC 2013
Public bug reported:
$ sudo lxc-clone -o old -n new
$ echo $?
1
$ sudo bash /usr/bin/lxc-clone -o old -n new
Tweaking configuration
Copying rootfs...
Updating rootfs...
'raring-cloned' created
$
Problem appears to be missing "|| true" in LXC_PATH= assignment in
/usr/share/lxc/lxc.functions:
LXC_PATH=$(grep -v "^#" "$globalconf" 2>/dev/null | grep "[ \t]*lxcpath[
\t]*=")
The above can fail due to running via 'set -e' so needs to be something
like:
LXC_PATH=$(grep -v "^#" "$globalconf" 2>/dev/null | grep "[ \t]*lxcpath[
\t]*=" || true)
** Affects: lxc (Ubuntu)
Importance: High
Status: Triaged
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1166870
Title:
lxc-clone fails silently
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1166870/+subscriptions
More information about the Ubuntu-server-bugs
mailing list