aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-21 08:56:58 +0200
committerDanilo M. <danix@danix.xyz>2026-10-21 08:56:58 +0200
commit7c9e7568f56a79b41e8c343e1189eb9210e61fd2 (patch)
tree1a452a6279aa1a17954f0565b5df32e4cd92ae72 /README.md
parent1ea812660c92e768a93af5e2f3e1ef20ac1e2500 (diff)
downloaddist-upgrade-7c9e7568f56a79b41e8c343e1189eb9210e61fd2.tar.gz
dist-upgrade-7c9e7568f56a79b41e8c343e1189eb9210e61fd2.zip
Rebuild r8125 for a newly installed kernel
When the r8125 package is installed and the newest kernel under /lib/modules has no r8125 module, rebuild it from the SBo -current SlackBuild (R8125_DIR, default /var/lib/sbopkg/SBo-git/network/r8125) and install it with upgradepkg. The SlackBuild dir is copied into the run's temp dir so the sbopkg tree stays clean, and the source is checked against the .info MD5. A failure warns that the NIC may not come up after reboot instead of aborting the run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/README.md b/README.md
index e4f6dac..c267dd5 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ Environment:
- `INITRD` initrd to inspect (default `/boot/initrd-generic.img`)
- `LOG` append the non-interactive run, slackpkg output included, to this file
(default `/var/log/dist-upgrade.log`; set it empty to disable)
+- `R8125_DIR` SBo `r8125` SlackBuild directory used for the driver rebuild
A logrotate rule for that log ships in `logrotate.d/dist-upgrade`; install it
to `/etc/logrotate.d/`.
@@ -39,7 +40,12 @@ to `/etc/logrotate.d/`.
initrd's contents,
- the module set against the pre-upgrade snapshot (notices modules lost).
4. Lists any leftover `.new` config files.
-5. Reports whether a reboot is recommended.
+5. If the `r8125` package is installed and the newest kernel has no `r8125`
+ module, rebuilds it from the SBo SlackBuild in `R8125_DIR` (default
+ `/var/lib/sbopkg/SBo-git/network/r8125`) and installs it with `upgradepkg`.
+ The tree is used as-is; sync it first if the new kernel needs a newer
+ driver.
+6. Reports whether a reboot is recommended.
A non-interactive run is appended to `LOG`, with a timestamped header per run,
so an unattended upgrade can be reviewed afterwards. Interactive runs are not
@@ -59,8 +65,9 @@ closing recap reminds you to re-run with `-i` to review and remove them.
## Requirements
Slackware `-current`, run as root. Needs `slackpkg`, `cpio` and `gzip`; `zstd`
-and `xz` are used only if the initrd is compressed with them. The module
-bootability check uses Slackware's own
+and `xz` are used only if the initrd is compressed with them. The `r8125`
+rebuild needs `wget` and the new kernel's `/lib/modules/<ver>/build` tree.
+The module bootability check uses Slackware's own
`/usr/share/mkinitrd/mkinitrd_command_generator.sh` when present.
## Testing