added wwctl container shell
This commit is contained in:
@@ -28,9 +28,6 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
allargs = append(allargs, "--bind", b)
|
||||
}
|
||||
allargs = append(allargs, args...)
|
||||
if len(args) == 1 {
|
||||
allargs = append(allargs, "/usr/bin/bash")
|
||||
}
|
||||
|
||||
c := exec.Command("/proc/self/exe", append([]string{"container", "exec", "__child"}, allargs...)...)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user