From 069f1edbe42ebd91800f9b35e8724babc4081613 Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 19 Mar 2020 20:17:03 -0700 Subject: Improve error message when pivot_root fails PiperOrigin-RevId: 301949722 --- runsc/cmd/gofer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runsc/cmd/gofer.go') 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") -- cgit v1.2.3