diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-26 10:10:25 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-26 10:10:25 +0200 |
| commit | 7b07552c1e0fe5798c993b1c8cd54b0465921f34 (patch) | |
| tree | 8974144ce4a2ddcb00a17b43b02ae1ebdcde45c1 /README.md | |
| parent | 83b30e4076356e7a2a104e7f67f727c792699107 (diff) | |
| download | dist-upgrade-7b07552c1e0fe5798c993b1c8cd54b0465921f34.tar.gz dist-upgrade-7b07552c1e0fe5798c993b1c8cd54b0465921f34.zip | |
Append run output to a log and list leftover .new configs
Non-interactive runs leave obsolete .new config files in place: new-config
exits without acting and there was no record to debug later. Tee the whole
run (script messages plus slackpkg output) to LOG, default
/var/log/dist-upgrade.log, with a timestamped header per run (a second one
on a 50-restart). LOG= disables it.
Also report leftover .new files under /etc and /boot at the end of a run.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -22,6 +22,8 @@ Options: Environment: - `INITRD` initrd to inspect (default `/boot/initrd-generic.img`) +- `LOG` append the whole run, slackpkg output included, to this file + (default `/var/log/dist-upgrade.log`; set it empty to disable) ## What it does @@ -33,7 +35,11 @@ Environment: - the modules `mkinitrd_command_generator.sh` says are needed against the initrd's contents, - the module set against the pre-upgrade snapshot (notices modules lost). -4. Reports whether a reboot is recommended. +4. Lists any leftover `.new` config files. +5. Reports whether a reboot is recommended. + +The full run is appended to `LOG`, with a timestamped header per run, so an +unattended upgrade can be reviewed afterwards. If slackpkg upgrades itself mid-run (exit status 50) the script re-executes once from the top to finish the operation, exactly as slackpkg's own message |
