Fix examples of how to create VM images #22
Loading…
Reference in a new issue
No description provided.
Delete branch "gioele/mmdebstrap:docs-fix-vm-creation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VM images created using the two examples contained in the "man page" of mmdebstrap do not boot (or cannot be generated at all in certain cases).
This PR aligns the two examples (so that both contain the same instructions formatted in the same way) and fixs the instructions to build the images.
Thank you for your contribution!
Can you explain which of your five changes is the one that is necessary so that it boots for you?
The instructions definitely work over here and I used the same steps in the autopkgtest of sbuild, libguestfs, genext2fs and dropbear:
And those scripts work just fine. Do you know why it didn't work for you?
For example you replaced
/usr/lib/SYSLINUX/mbr.bin
with/usr/lib/EXTLINUX/mbr.bin
but those two files are identical:Can you add more context?
The explanations are in the commit messages. :)
But let me recap:
The second example did not have
copy-file-to-device /boot/mbr.bin /dev/sda size:440
thus no boot loader, thus it did not boot.If you install only
extlinux
and notsyslinux
, the directory/usr/bin/SYSLINUX
does not exist. (Debian 11)ext4 because ext2 does not support TRIM/DISCARD.
Identical instruction text in both examples so that it's easier to spot that the VM creation phases are not different.
Whoops, indeed I missed the button with the three dots which shows the full commit message and I was thus only reading the first line in the webinterface.
Thank you!
And welcome to the list of contributors. :)
fe87c3a1b8