ventoy / vtoyboot

Work with ventoy to support boot Linux distros in a vdisk file (vhd/vdi/raw ...)
GNU General Public License v3.0
275 stars 23 forks source link

Linux vDisk: encrypted volumes (luks) not supported in .vhd.vtoy images? #9

Closed GvY85 closed 3 years ago

GvY85 commented 3 years ago

Hi,

First thanks for the great tool you made. I am using the Linux vDisk to boot a Manjaro. installation in a .vhd file so I have a 'real' persistant installation instead of a 'live image with persistance'. This works great so far. However, I thought the .vhd is vulnerable for external tampering so lets try and enable full disk encryption during the installation of Manjaro in the .vhd file but it seems (while the .vhd file works great in VirtualBox) I cannot run the .vhd.vtoy file afterwards.

After renaming the .vhd to .vhd.vtoy and moving it over and rebooting it shows up in the Ventoy menu. When selecting it and starting it asks for the luks password, decrypts the disk and shows the Manjaro boot menu but when it tries to start Manjaro I get a terminal with this output:

ERROR: device '/dev/mapper/luks-f........' not found.
 Skipping fck.
mount:: new_root: no filesystem type specified.
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned off
[root_fs ]# _ 

edit: renaming the image back to .vhd afterwards and booting it in VirtualBox works fine. edit: selecting to boot with the initramfs backup also doenst work. edit: tried booting in VirtualBox again and rerunning script, no change

Is this a know bug or am I doing something wrong?

ventoy commented 3 years ago

Please try this vtoyboot script. You need to recreate the vhd file, reinstall the manjaro and run the new vtoyboot.sh.

vtoyboot-1.0.13.tar.gz

GvY85 commented 3 years ago

Wow, that was quick :).

It works with the 1.0.13 release, amazing!

Like I said, to me this is a much better option than persistence on a live ISO.May cost a bit more effort to set up but you get a true portable OS installation with persistence..