Skip to content

Commit 363768c

Browse files
committed
*: deprecate --pivot-root and hide it runc --help
Existing users will still be able to use it, but new users won't be tempted into using this flag (and their containers should be able to run without issue without this flag anyway). Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 0b283ea commit 363768c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

create.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ command(s) that get executed on start, edit the args parameter of the spec. See
4444
Usage: "specify the file to write the process id to",
4545
},
4646
cli.BoolFlag{
47-
Name: "no-pivot",
48-
Usage: "do not use pivot root to jail process inside rootfs to work around limitations when running in an initramfs (this option is deprecated, insecure, and unnecessary now that pivot_root works with initramfs -- see <https://github.com/opencontainers/runc/issues/4435>)",
47+
Name: "no-pivot",
48+
Usage: "(deprecated; do not use)",
49+
Hidden: true,
4950
},
5051
cli.BoolFlag{
5152
Name: "no-new-keyring",

run.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ command(s) that get executed on start, edit the args parameter of the spec. See
5757
Usage: "disable the use of the subreaper used to reap reparented processes",
5858
},
5959
cli.BoolFlag{
60-
Name: "no-pivot",
61-
Usage: "do not use pivot root to jail process inside rootfs to work around limitations when running in an initramfs (this option is deprecated, insecure, and unnecessary now that pivot_root works with initramfs -- see <https://github.com/opencontainers/runc/issues/4435>)",
60+
Name: "no-pivot",
61+
Usage: "(deprecated; do not use)",
62+
Hidden: true,
6263
},
6364
cli.BoolFlag{
6465
Name: "no-new-keyring",

0 commit comments

Comments
 (0)