Skip to content

fix: enlighten lcow uvmboot with dm-verity boot - #2766

Merged
anmaxvl merged 1 commit into
microsoft:mainfrom
anmaxvl:fix/uvmboot-clcow
Jun 11, 2026
Merged

fix: enlighten lcow uvmboot with dm-verity boot#2766
anmaxvl merged 1 commit into
microsoft:mainfrom
anmaxvl:fix/uvmboot-clcow

Conversation

@anmaxvl

@anmaxvl anmaxvl commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

lcow uvmboot wasn't enlightened with dm-verity boot when the feature was introduced for C-LCOW. Address the gap by by setting the necessary lcow options:

  • HclEnabled must be set to false on newer OS builds
  • BundleDirectory must be set, so the template copy can happen
  • add -no-verity-boot flag for backward compat with earlier versions of kernel.vmgs which had rootfs baked in.
  • DmVerityRootFsVhd will be set to the default value from vmutils
  • DmVerityMode will be set to true

lcow uvmboot wasn't enlightened with dm-verity boot when the feature
was introduced for C-LCOW. Address the gap by by setting the
necessary lcow options:
 - `HclEnabled` must be set to false on newer OS builds
 - `BundleDirectory` must be set, so the template copy can happen
 - add `-no-verity-boot` flag for backward compat with earlier
   versions of kernel.vmgs which had rootfs baked in.
 - `DmVerityRootFsVhd` will be set to the default value from vmutils
 - `DmVerityMode` will be set to `true`

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl
anmaxvl requested a review from a team as a code owner June 5, 2026 22:53
Comment thread internal/tools/uvmboot/lcow.go
@anmaxvl
anmaxvl merged commit ba546e0 into microsoft:main Jun 11, 2026
19 checks passed
@anmaxvl
anmaxvl deleted the fix/uvmboot-clcow branch June 11, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants