Skip to content

feat: add .driverpostsync hook support#149

Open
amolani wants to merge 3 commits intolinuxmuster:mainfrom
amolani:feature/treiberpostsync-support
Open

feat: add .driverpostsync hook support#149
amolani wants to merge 3 commits intolinuxmuster:mainfrom
amolani:feature/treiberpostsync-support

Conversation

@amolani
Copy link
Contributor

@amolani amolani commented Mar 20, 2026

Summary

Adds support for an optional .treiberpostsync script, enabling patchless driver injection based on hardware profile matching without modifying the existing postsync workflow.

Changes:

  • linbofs/usr/bin/linbo_sync — source <imagebase>.treiberpostsync after the regular .postsync (same context: mounted OS at /mnt)
  • linbofs/usr/bin/linbo_download_image — add treiberpostsync to the download loop so the file is fetched from the server into /cache/

How it works

  1. A driver management tool generates .treiberpostsync scripts per image in /srv/linbo/images/<image>/
  2. linbo_download_image downloads the script to /cache/ alongside .postsync and .reg
  3. linbo_sync sources it after the regular postsync — drivers get copied into the synced OS

Testing

Tested on a live linuxmuster 7.2 setup:

  • Clients sync normally when no .treiberpostsync exists (no-op, [ -s ... ] guard)
  • When .treiberpostsync is present, drivers are correctly injected
  • No impact on existing .postsync behavior

Source an optional .treiberpostsync script after the regular postsync,
enabling patchless driver injection based on hardware profile matching.
The script is expected at /cache/<imagebase>.treiberpostsync and runs
in the same context as postsync (mounted OS at /mnt).

Also adds treiberpostsync to the download loop in linbo_download_image
so the file is fetched from the server into /cache/ before sync.
@amolani amolani changed the title feat: add .treiberpostsync hook support feat: add .driverpostsync hook support Mar 24, 2026
amolani added 2 commits March 24, 2026 18:49
treiber to driver to keep it in english
treiber to driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant