feat: add .driverpostsync hook support#149
Open
amolani wants to merge 3 commits intolinuxmuster:mainfrom
Open
Conversation
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
commented
Mar 24, 2026
treiber to driver to keep it in english
treiber to driver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for an optional
.treiberpostsyncscript, enabling patchless driver injection based on hardware profile matching without modifying the existing postsync workflow.Changes:
linbofs/usr/bin/linbo_sync— source<imagebase>.treiberpostsyncafter the regular.postsync(same context: mounted OS at/mnt)linbofs/usr/bin/linbo_download_image— addtreiberpostsyncto the download loop so the file is fetched from the server into/cache/How it works
.treiberpostsyncscripts per image in/srv/linbo/images/<image>/linbo_download_imagedownloads the script to/cache/alongside.postsyncand.reglinbo_syncsources it after the regular postsync — drivers get copied into the synced OSTesting
Tested on a live linuxmuster 7.2 setup:
.treiberpostsyncexists (no-op,[ -s ... ]guard).treiberpostsyncis present, drivers are correctly injected.postsyncbehavior