mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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:
parent
ef19b3e3f5
commit
fbc680a318
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user