summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd/gofer.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-03-19 20:17:03 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-19 20:18:03 -0700
commit069f1edbe42ebd91800f9b35e8724babc4081613 (patch)
treef40888bf053c83e7f3c5fda9bf419849265bf7c6 /runsc/cmd/gofer.go
parentb9210b285566acd72d0820b42c1a330ba56a1ad0 (diff)
Improve error message when pivot_root fails
PiperOrigin-RevId: 301949722
Diffstat (limited to 'runsc/cmd/gofer.go')
-rw-r--r--runsc/cmd/gofer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/cmd/gofer.go b/runsc/cmd/gofer.go
index 6e06f3c0f..02e5af3d3 100644
--- a/runsc/cmd/gofer.go
+++ b/runsc/cmd/gofer.go
@@ -335,7 +335,7 @@ func setupRootFS(spec *specs.Spec, conf *boot.Config) error {
if !conf.TestOnlyAllowRunAsCurrentUserWithoutChroot {
if err := pivotRoot("/proc"); err != nil {
- Fatalf("faild to change the root file system: %v", err)
+ Fatalf("failed to change the root file system: %v", err)
}
if err := os.Chdir("/"); err != nil {
Fatalf("failed to change working directory")