Merge pull request #978 from hmeng-19/fix_mount_error
Fix the err info of mount failure
This commit is contained in:
commit
6c7e43594e
|
@ -50,7 +50,7 @@ func setupRootfs(config *configs.Config, console *linuxConsole, pipe io.ReadWrit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := mountToRootfs(m, config.Rootfs, config.MountLabel); err != nil {
|
if err := mountToRootfs(m, config.Rootfs, config.MountLabel); err != nil {
|
||||||
return newSystemErrorWithCausef(err, "mounting %q to rootfs %q", m.Destination, config.Rootfs)
|
return newSystemErrorWithCausef(err, "mounting %q to rootfs %q at %q", m.Source, config.Rootfs, m.Destination)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, postcmd := range m.PostmountCmds {
|
for _, postcmd := range m.PostmountCmds {
|
||||||
|
|
Loading…
Reference in New Issue