Use shutdown-first detached reboot wrappers#137
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the reboot logic across the system to include a sync command and a check for the /sbin/shutdown utility before falling back to /sbin/reboot. These changes are reflected in the CLI flows, fsck scripts, and deployment executor, along with updated test coverage. Feedback focuses on reducing code duplication by unifying the reboot command constants across different modules and ensuring that the sync operation is applied consistently to all related reboot commands.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the remote reboot command to include a sync operation and prioritize the shutdown command over a direct reboot for improved reliability. The review identified that the two reboot functions in the executor module are now redundant and should be consolidated, and noted that a progress message override in the CLI flows module needs to be updated for consistency with the new command logic.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request unifies the reboot logic by replacing DETACHED_REBOOT_COMMAND with an updated DETACHED_SHUTDOWN_REBOOT_COMMAND that includes a sync operation and a fallback mechanism. These changes are applied to the CLI flows and fsck scripts, and the test suite has been updated to verify the new command strings. Feedback suggests refactoring the hardcoded progress messages into a constant to improve maintainability and ensure consistency across the codebase.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the remote reboot mechanism to consistently use a shutdown-first approach by including /bin/sync and removing the conditional check for /sbin/shutdown. It standardizes the reboot command and progress messages across the CLI and deployment modules, while refactoring remote_request_shutdown_reboot to call remote_request_reboot. The reviewer suggests further simplifying remote_request_shutdown_reboot by aliasing it to remote_request_reboot.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request consolidates and simplifies the remote reboot logic by removing the redundant remote_request_shutdown_reboot function and DETACHED_REBOOT_COMMAND constant. It introduces a unified DETACHED_SHUTDOWN_REBOOT_COMMAND that includes a /bin/sync call and a fallback mechanism. Corresponding updates were made to the CLI flows, FSCK script, and test suites. Feedback suggests moving the /bin/sync command outside the backgrounded subshell in the reboot command to ensure data integrity even if backgrounding fails.
Summary
Tests