Offer to reboot at the end of an install or update that needs one
shellcheck / shellcheck (push) Failing after 13s
shellcheck / shellcheck (push) Failing after 13s
update already said "Please reboot when convenient" after a new kernel, firmware, microcode, NVIDIA driver, systemd or glibc. It now ends by asking "Reboot now? [y/N]", after the offer to send a failed step's log. 99-reboot-check.sh records that a reboot is needed, and update clears that before its steps run, so an earlier update's reboot isn't offered. Under script(1), the copy outside reboots once the log is cleaned up. Never asked without a terminal, or when the initramfs failed to rebuild. install asks the same when it brought in a newer kernel. Both reboot with systemctl, like the system menu's restart: sudo's cached password belongs to another terminal by then. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -66,7 +66,7 @@ wget -qO- https://federated.sh | bash
|
||||
|
||||
First it checks the machine. It stops if this isn't Arch, if you run it as root, if your user can't use sudo, or if there's no internet. It asks before going on if there's less than about 60 GB free, or if / isn't on btrfs (then there are no snapshots before updates, and only reinstalling Arch with btrfs changes that). If the login screen isn't GNOME's, or sound goes through PulseAudio, it offers to switch to GNOME's login screen and to PipeWire.
|
||||
|
||||
3) At the end, it offers to run `configure`, which connects to your Federated Core, sets up backups and signs you in to the AI agents (see "Configure" below). If the install brought in a newer kernel, it asks you to reboot first; run `configure` after the reboot.
|
||||
3) At the end, it offers to run `configure`, which connects to your Federated Core, sets up backups and signs you in to the AI agents (see "Configure" below). If the install brought in a newer kernel, it asks you to reboot first, and offers to reboot now; run `configure` after the reboot.
|
||||
|
||||
4) If something fails, just run the command again. It skips what's already done.
|
||||
|
||||
@@ -214,7 +214,7 @@ Each run's full output is saved in ~/.local/state/coredesktop/logs/, so you can
|
||||
|
||||
If an install or update fails, it offers to send its log to the CoreDesktop team so we can find and fix the problem. Nothing is sent unless you say yes, and you can read exactly what would be sent first: your user name, host name, home folder, email addresses, IP addresses and Tailscale names are taken out. Along with the log go CoreDesktop's version, the kernel's, the names of the steps that failed and your sibling projects' versions. You get a report ID to mention if you contact us. To send a log later, run `report` (the newest log) or `report <file>`; `report --view` shows what would be sent without sending anything.
|
||||
|
||||
It is a good idea to reboot after an update especially if you see you have a new Linux kernel installed (and that happens frequently enough for Arch).
|
||||
If the update installed a newer kernel, or upgraded firmware, CPU microcode, the NVIDIA driver, systemd or glibc, it says so at the end and asks whether to reboot now. The answer is no unless you type y.
|
||||
|
||||
Note: sometimes, for whatever reason, the update barfs. Take a look at [https://archlinux.org](https://archlinux.org) in the "Latest News" section for fixes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user