]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
LXC: Change incorrect error report in lxcContainerPivotRoot
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 22 Nov 2013 07:11:07 +0000 (15:11 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 16 Dec 2013 10:12:41 +0000 (11:12 +0100)
The newroot is not mounted as tmpfs, we bind root->src to it.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/lxc/lxc_container.c

index 51fa1b36fb1fd81d9ddad1b31cc4a50c05fcbfeb..6a9f53a7d4d56cf381292f12908019c500d45a2e 100644 (file)
@@ -654,8 +654,8 @@ static int lxcContainerPivotRoot(virDomainFSDefPtr root)
     /* ... and mount our root onto it */
     if (mount(root->src, newroot, NULL, MS_BIND|MS_REC, NULL) < 0) {
         virReportSystemError(errno,
-                             _("Failed to bind new root %s into tmpfs"),
-                             root->src);
+                             _("Failed to bind %s to new root %s"),
+                             root->src, newroot);
         goto err;
     }