LXC: Change incorrect error report in lxcContainerPivotRoot

The newroot is not mounted as tmpfs, we bind root->src to it.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
This commit is contained in:
Gao feng 2013-11-22 15:11:07 +08:00 committed by Michal Privoznik
parent ef19b3e3f5
commit fbc680a318

View 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;
}