Use debos native btrfs subvolumes in image-partition#107
Draft
Yury-MonZon wants to merge 1 commit into
Draft
Conversation
Yury-MonZon
marked this pull request as ready for review
July 8, 2026 15:17
Yury-MonZon
marked this pull request as draft
July 8, 2026 15:17
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.
Replaces the hand-rolled subvolume creation / mounting / fstab-append
runsteps with debos's native btrfs subvolume support inimage-partition(declarativesubvolumes:+ per-mountpointsubvolume:).Changes (
debian-rk3576-img.yaml)image-partitionnow declares the subvolumes (boot,@Minimal,@home,@snapshots,@var-log,@var-cache) and their mountpoints (/,/boot,/home,/var/log,/var/cache) with a per-mountsubvolume:;bootgetscompression: noneso U-Boot can read the kernel/dtb/initrd without a zstd-capable btrfs driver.runstep that created + nested-mounted the subvolumes, and the one that appended the non-root fstab lines — debos writes them now.btrfs balanceto assert dup metadata+system / single data (debos passes only mkfs-O/-E, and the default-m/-dhas flipped across btrfs-progs versions).subvol=@Minimalfrom the/fstab line so every profile shares a subvol-agnostic fstab and selects its root viarootflags=subvol=.Blocked on: debos
Requires a debos build with native btrfs subvolume support in
image-partition(go-debos/debos#736). Draft until the debos bump lands.