Skip to contentSkip to conversation

dev-manual/start.rst: added missing command in Optimize your VHDX file using DiskPart

PATCH Applied Marco Cavallini 2 participants 2 messages Jul 21, 2025 – Aug 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dev-manual/start.rst: added missing command in Optimize your VHDX file using DiskPart

After compact vsdisk you have to detach it before exiting otherwise the vdisk remains attached.

DISKPART> select vdisk file="<path_to_VHDX_file>" DISKPART> attach vdisk readonly
DISKPART> compact vdisk
DISKPART> detach <------------ new missing command
DISKPART> exit

---
 documentation/dev-manual/start.rst | 1 +
 1 file changed, 1 insertion(+)
documentation/dev-manual/start.rst +1 -0
index e10367752..803ea2601 100644
@@ -554,6 +554,7 @@ your Yocto Project build host:
          DISKPART> select vdisk file="<path_to_VHDX_file>"
          DISKPART> attach vdisk readonly
          DISKPART> compact vdisk
+         DISKPART> detach
          DISKPART> exit
 
 .. note::
#1 lore raw
Quoted 10 lines · Marco Cavallini

After compact vsdisk you have to detach it before exiting otherwise the vdisk remains attached.

DISKPART> select vdisk file="<path_to_VHDX_file>" DISKPART> attach vdisk readonly
DISKPART> compact vdisk
DISKPART> detach <------------ new missing command
DISKPART> exit

[...]

Applied, thanks!

[1/1] dev-manual/start.rst: added missing command in Optimize your VHDX file using DiskPart

      commit: 1cc65ddf1a074f61fe5a63d222f3079b7fcb4c1e

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>