From 7c9e7568f56a79b41e8c343e1189eb9210e61fd2 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 21 Oct 2026 08:56:58 +0200 Subject: 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 --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'README.md') 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//build` tree. +The module bootability check uses Slackware's own `/usr/share/mkinitrd/mkinitrd_command_generator.sh` when present. ## Testing -- cgit v1.2.3