Skip to content

RDKEMW-15490 : Removing reboot script reference from sysint#500

Merged
tdeva14 merged 2 commits intodevelopfrom
feature/rdkemw-15490
Apr 9, 2026
Merged

RDKEMW-15490 : Removing reboot script reference from sysint#500
tdeva14 merged 2 commits intodevelopfrom
feature/rdkemw-15490

Conversation

@Saranya2421
Copy link
Copy Markdown
Contributor

No description provided.

@Saranya2421 Saranya2421 requested a review from a team as a code owner April 9, 2026 05:20
Copilot AI review requested due to automatic review settings April 9, 2026 05:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes several reboot-related scripts and systemd units from sysint, apparently to eliminate script-based reboot/reboot-info handling.

Changes:

  • Removed systemd units for reboot logging (reboot-logger.service, reboot-reason-logger.service) and previous reboot info update (update-reboot-info.service, update-reboot-info.path).
  • Removed shell implementations for reboot handling and reboot info updates (rebootNow.sh, reboot-checker.sh, update_previous_reboot_info.sh).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
systemd_units/update-reboot-info.service Deleted unit that triggered previous reboot info update script
systemd_units/update-reboot-info.path Deleted path unit that watched /tmp/stt_received to trigger the service
systemd_units/reboot-reason-logger.service Deleted oneshot service that invoked reboot-checker at boot
systemd_units/reboot-logger.service Deleted oneshot shutdown service that invoked reboot-checker at shutdown
lib/rdk/update_previous_reboot_info.sh Deleted previous reboot info processing script
lib/rdk/rebootNow.sh Deleted reboot request script (and its internal fallback logic)
lib/rdk/reboot-checker.sh Deleted boot/shutdown reboot info logger/updater script
Comments suppressed due to low confidence (1)

lib/rdk/rebootNow.sh:1

  • Deleting this script leaves a dangling runtime dependency: the package install still creates a /rebootNow.sh symlink to /lib/rdk/rebootNow.sh (Makefile:86), and multiple remaining scripts invoke /rebootNow.sh (e.g., lib/rdk/utils.sh:65, lib/rdk/factory-reset.sh:200, lib/rdk/userInitiatedFWDnld.sh:451, lib/rdk/warehouse-reset.sh:234). With this file removed, those calls will fail at runtime. Either keep a thin /lib/rdk/rebootNow.sh wrapper (forwarding to the new implementation, e.g. /usr/bin/rebootnow), or update the callers + Makefile symlink to the new path and ensure the legacy /rebootNow.sh entrypoint still exists for compatibility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@tdeva14 tdeva14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tdeva14 tdeva14 changed the title RDKEMW-15490 : Removing script reference from sysint RDKEMW-15490 : Removing reboot script reference from sysint Apr 9, 2026
@tdeva14 tdeva14 merged commit bc5e8d8 into develop Apr 9, 2026
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants