initramfs: setup dmroot as non-persistent snapshot

The volatile.img is cleared before each startup anyway.
This should speed up AppVM start and reduce ssd wearing.
This commit is contained in:
Marek Marczykowski 2012-06-10 02:01:47 +02:00
parent c8d9a64026
commit 0737d28707

View File

@ -20,7 +20,7 @@ if [ `blockdev --getro /dev/xvda` = 1 ] ; then
while ! [ -e /dev/xvdc ]; do sleep 0.1; done
while ! [ -e /dev/xvdc2 ]; do sleep 0.1; done
echo "0 `blockdev --getsz /dev/xvda` snapshot /dev/xvda /dev/xvdc2 P 16" | \
echo "0 `blockdev --getsz /dev/xvda` snapshot /dev/xvda /dev/xvdc2 N 16" | \
dmsetup create dmroot || { echo "Qubes: FATAL: cannot create dmroot!"; }
echo Qubes: done.
else