From 6b8397e9de98a0089e8e5a05300d91ae610cd0f8 Mon Sep 17 00:00:00 2001 From: amo Date: Fri, 20 Mar 2026 23:05:29 +0100 Subject: [PATCH 1/3] feat: add .treiberpostsync hook support to linbo_sync Source an optional .treiberpostsync script after the regular postsync, enabling patchless driver injection based on hardware profile matching. The script is expected at /cache/.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. --- linbofs/usr/bin/linbo_download_image | 2 +- linbofs/usr/bin/linbo_sync | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/linbofs/usr/bin/linbo_download_image b/linbofs/usr/bin/linbo_download_image index aab3336..1353689 100755 --- a/linbofs/usr/bin/linbo_download_image +++ b/linbofs/usr/bin/linbo_download_image @@ -191,7 +191,7 @@ if [ -z "$DOWNLOAD" ]; then fi # download postsync and reg files in any case -for ext in postsync reg; do +for ext in postsync treiberpostsync reg; do for base in "$FILE" "$imagebase"; do echo -n "Trying to download ${base}.${ext} ... " if linbo_download "${subdir}${base}.${ext}" &> /dev/null; then diff --git a/linbofs/usr/bin/linbo_sync b/linbofs/usr/bin/linbo_sync index 1352bfa..32e50c4 100755 --- a/linbofs/usr/bin/linbo_sync +++ b/linbofs/usr/bin/linbo_sync @@ -633,6 +633,10 @@ syncl(){ # source postsync script [ -s "/cache/$postsync" ] && . "/cache/$postsync" + # source driver postsync script (patchless driver matching) + local treiberpostsync="${imagebase}.treiberpostsync" + [ -s "/cache/$treiberpostsync" ] && . "/cache/$treiberpostsync" + # finally do minimal boot configuration mk_boot || RC=1 From 9449e6a83b7f43eb7f4866ba38a6e1539cb65ab5 Mon Sep 17 00:00:00 2001 From: amolani <141552739+amolani@users.noreply.github.com> Date: Tue, 24 Mar 2026 18:49:23 +0100 Subject: [PATCH 2/3] Update linbo_download_image treiber to driver to keep it in english --- linbofs/usr/bin/linbo_download_image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linbofs/usr/bin/linbo_download_image b/linbofs/usr/bin/linbo_download_image index 1353689..f9e1af8 100755 --- a/linbofs/usr/bin/linbo_download_image +++ b/linbofs/usr/bin/linbo_download_image @@ -191,7 +191,7 @@ if [ -z "$DOWNLOAD" ]; then fi # download postsync and reg files in any case -for ext in postsync treiberpostsync reg; do +for ext in postsync driverpostsync reg; do for base in "$FILE" "$imagebase"; do echo -n "Trying to download ${base}.${ext} ... " if linbo_download "${subdir}${base}.${ext}" &> /dev/null; then From 2439d679aee91f873af4996b1ea9580854e12e28 Mon Sep 17 00:00:00 2001 From: amolani <141552739+amolani@users.noreply.github.com> Date: Tue, 24 Mar 2026 18:50:06 +0100 Subject: [PATCH 3/3] Update linbo_sync treiber to driver --- linbofs/usr/bin/linbo_sync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linbofs/usr/bin/linbo_sync b/linbofs/usr/bin/linbo_sync index 32e50c4..bf116c2 100755 --- a/linbofs/usr/bin/linbo_sync +++ b/linbofs/usr/bin/linbo_sync @@ -634,8 +634,8 @@ syncl(){ [ -s "/cache/$postsync" ] && . "/cache/$postsync" # source driver postsync script (patchless driver matching) - local treiberpostsync="${imagebase}.treiberpostsync" - [ -s "/cache/$treiberpostsync" ] && . "/cache/$treiberpostsync" + local driverpostsync="${imagebase}.driverpostsync" + [ -s "/cache/$driverpostsync" ] && . "/cache/$driverpostsync" # finally do minimal boot configuration mk_boot || RC=1