Repair missing zram configuration before activating swap - #387
Open
mostlydev wants to merge 1 commit into
Open
Conversation
mostlydev
marked this pull request as ready for review
September 9, 2026 22:52
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.
On an ARM install upgraded to
omarchy-settings 4.0.2-2, the zram default exists under/usr/share/omarchy/default/but no configuration is installed where zram-generator reads it. Migration1787669934.shthen startssystemd-zram-setup@zram0.service, fails withDevice zram0 not found, and leaves the migration queue blocked. Rebooting does not restore the missing configuration.Repair the existing migration so pending installations can reach the fix: copy the shipped default to
/etc/systemd/zram-generator.confonly when no main configuration or drop-in exists at any supported configuration level, then reload systemd and startdev-zram0.swap. Starting the swap unit activates swap as well as setting up the device. Existing configuration, empty files, symlink masks, and active swap are preserved; an active device with missing persistent configuration gets the fallback without being restarted.The fallback deliberately avoids an unowned
/usr/libfile. A future package can restore its vendor drop-in without a file conflict, and that drop-in takes precedence over the fallback main configuration. This is a repair for the blocked migration, not a replacement for the package payload fixes in #353 or checkout wiring in #319. Users who already completed this migration still need the package fix. Related to #369 and #311.Validation:
ZRAM_GENERATOR_ROOTintegration test: no swap unit before repair; a swap unit with the setup dependency andswap.targetlink afterward../test/all: CLI passes; 255/256 shell test files pass on both this branch and untouchedorigin/quattro(291a6989). Both fail the same unrelatedlaunch-about-test.shassertion,a roomy window animates. No green local aggregate is claimed../tests/allhas the same pre-existing piped--helpassertion failure intest-mac-setup.shon both revisions. Hosted PR CI passestest/all,tests/all, and Syntax + shellcheck.hyprtoolkit installed=0.5.4-6 expected=0.5.4-5.1), unrelated to these two changed files. An independent unchanged-quattro run on my fork reproduces the identical failure. Isolating the existing package-selection fix from Integrate Apple Silicon stabilization fixes for 4.0.3rc1 #377 yields a passing ARM run, including the real-Pacman regression and fresh/repeat installation, with all three selected compositor package versions retained. That comparison branch does not include this zram change; it establishes the independent installer defect and its existing fix.No privileged migration or swap changes were run on the host as part of testing this PR.