live: place private.img of default VMs back on dm-snapshot device

Apparently those 350MB are critical on 4GB systems without a swap.
This commit is contained in:
Marek Marczykowski-Górecki 2015-08-09 20:43:06 +02:00
parent 012cad5b47
commit d57c5e814a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -135,6 +135,12 @@ for dir in /var/lib/qubes-base/*; do
;; ;;
esac esac
done done
for privateimg in /var/lib/qubes-base/*vms/*/private.img; do
tmpfs_path=${privateimg/\/var\/lib\/qubes-base/\/home\/qubes}
if rm $tmpfs_path; then
ln -s $privateimg $tmpfs_path
fi
done
mount --bind /home/qubes /var/lib/qubes mount --bind /home/qubes /var/lib/qubes
/usr/bin/qvm-prefs --offline-mode -s sys-net pcidevs '[]' /usr/bin/qvm-prefs --offline-mode -s sys-net pcidevs '[]'