Keep the /host directory when copying over the files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvpm |
Fix Released
|
High
|
Geza Kovacs |
Bug Description
The /host directory is required when the virtualdisk is resized, or /host (and hence /boot) will not be accessible. Patch provided.
=== modified file 'lvpm/usr/
--- lvpm/usr/
+++ lvpm/usr/
@@ -215,7 +215,7 @@
killall zenity
zenity --progress --percentage 15 --text="Copying files over (This can take over an hour, please wait)" &
-rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/tdm
+rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/tdm
killall zenity
zenity --progress --percentage 80 --text=
@@ -583,7 +583,7 @@
mkdir /media/extra
mount -o loop,sync /host/ubuntu/
zenity --progress --percentage 45 --text="Copying over files" &
-rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/extra
+rsync -av --exclude '/sys/*' --exclude '/proc/*' --exclude '/host/*' --exclude '/mnt/*' --exclude '/media/*/*' --exclude '/tmp/*' --exclude '/home/*/.gvfs' --exclude '/root/.gvfs' / /media/extra
umount /media/extra
rmdir /media/extra
echo "
Much thanks for pointing that out. I've applied your patch, and will release a new version with it as soon as I've tested it. I actually don't believe the modification is necessary for the first line (transferring to a dedicated partition), since the host mountpoint is changed to /media/drv0, but I've applied it nevertheless; an empty, unused folder isn't a big deal if it could potentially fix some corner-case issue.