Skip to content

Keep USB overlays current and drop silent userns_mode - #844

Merged
calledtoconstruct merged 5 commits into
MyOwnDataCenter:mainfrom
calledtoconstruct:fix/apps-usb-store
Nov 21, 2026
Merged

calledtoconstruct merged 5 commits into
MyOwnDataCenter:mainfrom
calledtoconstruct:fix/apps-usb-store

Conversation

@calledtoconstruct

Copy link
Copy Markdown
Collaborator

Summary

  • An unplugged USB stick stays bound but is left out of the overlay. Restart recreates the container after writing the overlay, and records only the sticks that were present. Update rewrites compose.usb.yml after placing the app, and restores the previous overlay if a later step fails.
  • A retry after a failed dependency ignores error-state ports, and removes those records only after the plan and the checks succeed.
  • Overlapping App Store reads share one download. A failed download rejects every waiter, and the next read starts a new attempt.
  • userns_mode is stripped with a log line that names it. Podman ignores the key, so it is no longer asked for as a system permission.

Thanks @nixfred and @reeseroyster.

Fixes #804
Fixes #688
Fixes #138
Fixes #679
Fixes #528
Fixes #134

Test plan

  • test/app-permissions.test.mjs, test/store-sync.test.mjs, test/usb.test.mjs, and test/apps.test.mjs (59 passed)
  • CI test job on this head

An unplugged stick was written into the overlay, and restart marked it applied without recreating the container. Updates left the old service name in compose.usb.yml. A retry after a failed dependency treated that app's port as taken and removed the record before the check failed. Overlapping store reads each started a clone. Podman ignores userns_mode, so the key is stripped with a warning instead of being asked for as a system permission.

Co-Authored-By: Grok 4.7
Co-Authored-By: Grok 4.7
The scenarios wrote their script under /tmp/omarchy-w10-apps and imported apps.mjs from there. CI does not have that directory, so the three overlay tests failed before they ran. The script now lives in this checkout and imports the apps module from it.

Co-Authored-By: Grok 4.7
Co-Authored-By: Grok 4.7
GitHub's runner refuses unshare, so the three overlay tests exited before they asserted anything. The server still uses access() to see a stick. The tests answer that question themselves.

Co-Authored-By: Grok 4.7
@calledtoconstruct

Copy link
Copy Markdown
Collaborator Author

Thank you @nixfred and @reeseroyster. Merged.

An unplugged stick stays out of the overlay. Restart recreates the container so a newly attached stick is applied. An update rewrites the overlay for the current services. A failed install stays until the port checks succeed. Overlapping store reads share one download. userns_mode is left out of the file that runs.

Test passed on 39c3b23.

🤖 Generated with Grok 4.7

@calledtoconstruct
calledtoconstruct merged commit 061e3e0 into MyOwnDataCenter:main Nov 21, 2026
1 check passed
@calledtoconstruct
calledtoconstruct deleted the fix/apps-usb-store branch November 27, 2026 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment