Closed candrapersada closed 3 years ago
iso is a read only file system. In the vtoyboot.sh script, some temporary process(e.g. chmod, create temp file or log) need the write permission.
So if the files are directly in the iso, user may run vtoyboot.sh directly under the mount path and this will cause some problem.
i mean without .tar.gz
like this
vtoyboot-1.0.15.iso
I understand.
As I said, when such ISO file connected to the VM, many distros will auto mount it to for example /run/media/Vtoyboot.
Ok, now some user will open the terminal directly under /run/media/Vtoyboot/vtoyboot-1.0.15 and run sudo sh vtoyboot.sh
here.
But vtoyboot.sh will generate some temporary file (e.g. logs) in the current directory. So it will fail to create such temporary files under /run/media/Vtoyboot/vtoyboot-1.0.15, because this is the mountpoint of the ISO file and is read-only.
User must copy the whole directory from the ISO file to the local path and run vtoyboot.sh there. But they may not be aware of such restriction. So I put vtoyboot.tar.gz inside the ISO file, user will have no choice but only can extract it to the local path, then it will OK.
i mean no need .tar.gz in iso
iso without .tar.gz
Didn't you understand what I said?
If I use an iso with out .tar.gz, people will run vtoyboot.sh directly under the ISO montpoint path, this will cause problem. If so, I will need to explain for all the users that, you can not run vtoyboot.sh directly under the ISO mount point path, you must:
cp -a /run/media/vtoyboot-1.0.15 /home
cd /home/vtoyboot-1.0.15
sudo sh vtoyboot.sh
I don't want to do that.
That is to say, when you connect the ISO file to the VM /dev/sr0
may be corresponding to the ISO file in the VM.
So:
mount /dev/sr0 /mnt
cd /mnt/vtoyboot-1.0.15
sudo sh vtoyboot.sh <------ This will cause problem, because /mnt/vtoyboot-1.0.15 is readonly
So user must do as follows:
mount /dev/sr0 /mnt
cp -a /mnt/vtoyboot-1.0.15 /home
cd /home/vtoyboot-1.0.15
sudo sh vtoyboot.sh
Understand?
but on https://www.ventoy.net/en/plugin_vtoyboot.html there is only this information?
This page has not been updated. I will update it soon.
Even this page not updated, people will be not very confused. Because they will get the .tar.gz file from the iso and decompress it. Or they will not find the vtoyboot.sh .
I wrapper the .tar.gz into an ISO file only for convenience to upload the .tar.gz file into the VM.
Thanks for making vtoyboot.tar.gz inside .iso file. now it's easier to mount it via Virtualbox instead of copy tar.gz file into usb drive then mount it via Virtualbox.
why still use .tar.gz in the iso?