Skip to content

Commit

Permalink
chore: drop deprecated --no-reboot param and KernelCurrentRoot const
Browse files Browse the repository at this point in the history
Fixes: #3909

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
  • Loading branch information
Unix4ever committed Aug 13, 2021
1 parent 33d1c3e commit 3518219
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions cmd/talosctl/cmd/talos/apply-config.go
Expand Up @@ -176,10 +176,5 @@ func init() {
applyConfigCmd.Flags().BoolVar(&applyConfigCmdFlags.interactive, "interactive", false, "apply the config using text based interactive mode")
applyConfigCmd.Flags().BoolVar(&applyConfigCmdFlags.onReboot, "on-reboot", false, "apply the config on reboot")
applyConfigCmd.Flags().BoolVar(&applyConfigCmdFlags.immediate, "immediate", false, "apply the config immediately (without a reboot)")

// deprecated, to be removed in 0.12: https://github.com/talos-systems/talos/issues/3909
applyConfigCmd.Flags().BoolVar(&applyConfigCmdFlags.onReboot, "no-reboot", false, "apply the config only after the reboot")
applyConfigCmd.Flags().MarkHidden("no-reboot") //nolint:errcheck

addCommand(applyConfigCmd)
}
7 changes: 0 additions & 7 deletions pkg/machinery/constants/constants.go
Expand Up @@ -65,13 +65,6 @@ const (
// KernelParamPanic is the kernel parameter name for specifying the time to wait until rebooting after kernel panic (0 disables reboot).
KernelParamPanic = "panic"

// KernelCurrentRoot is the kernel parameter name for specifying the
// current root partition.
//
// Deprecated: Talos now expects to use an entire disk; this constant will be removed in 0.12
// (https://github.com/talos-systems/talos/issues/3909).
KernelCurrentRoot = "talos.root"

// NewRoot is the path where the switchroot target is mounted.
NewRoot = "/root"

Expand Down

0 comments on commit 3518219

Please sign in to comment.