-
Notifications
You must be signed in to change notification settings - Fork 819
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmd): Do not hardcode reboot command (#5208)
Attempting a `cloud-init clean --reboot` fails on alpine because this command is hard-coded. This code already has an Init object available, which has a Distro attribute. Stamp out the duplicate hard-coded implementation and re-use distro reboot code to acquire cross-distro compatibility. Error: Could not reboot this system using "['shutdown', '-r', 'now']": Unexpected error while running comma nd. Command: ['shutdown', '-r', 'now'] Exit code: - Reason: [Errno 2] No such file or directory: b'shutdown' Stdout: - Stderr: -
- Loading branch information
Showing
3 changed files
with
58 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters