We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f1b74b + 332828c commit fc167ffCopy full SHA for fc167ff
handlers.go
@@ -63,7 +63,7 @@ var JailerConfigValidationHandler = Handler{
63
return nil
64
}
65
66
- hasRoot := false
+ hasRoot := m.Cfg.InitrdPath != ""
67
for _, drive := range m.Cfg.Drives {
68
if BoolValue(drive.IsRootDevice) {
69
hasRoot = true
jailer.go
@@ -373,7 +373,7 @@ func LinkFilesHandler(kernelImageFileName string) Handler {
373
374
initrdFilename := ""
375
if m.Cfg.InitrdPath != "" {
376
- initrdFilename := filepath.Base(m.Cfg.InitrdPath)
+ initrdFilename = filepath.Base(m.Cfg.InitrdPath)
377
// copy initrd to root fs
378
if err := os.Link(
379
m.Cfg.InitrdPath,
0 commit comments