A disk-mode overlay defaults to C:\uwfswap.sys -- on the very volume being protected, which is the opposite of the point. uwfmgr grew a create-swapfile subcommand for exactly this, and it only accepts the call while the filter is off and the overlay is already in disk mode, so the ordering in the generated script is forced rather than stylistic. Configuration is deferred to the target's first boot through RunOnce instead of running in the build. Two reasons: uwfmgr does not exist until the DISM feature has been through a reboot, and the swapfile belongs on the real data volume rather than on the throwaway copy the build attaches. Enabling the filter needs one more restart after that, which the script asks for itself. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0117qMyjpuXsjpVAcpJbFD8g |
||
|---|---|---|
| .. | ||
| apps | ||
| essentials | ||
| registry | ||
| default-apps.nix | ||
| default.nix | ||
| generalize.nix | ||