From 0737d28707978ae72d1a52bf4983be0a8d87842f Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 10 Jun 2012 02:01:47 +0200 Subject: [PATCH] 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. --- vm-initramfs/lib/dracut/hooks/pre-udev/90_qubes_cow_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-initramfs/lib/dracut/hooks/pre-udev/90_qubes_cow_setup.sh b/vm-initramfs/lib/dracut/hooks/pre-udev/90_qubes_cow_setup.sh index 117d257..fa1616f 100755 --- a/vm-initramfs/lib/dracut/hooks/pre-udev/90_qubes_cow_setup.sh +++ b/vm-initramfs/lib/dracut/hooks/pre-udev/90_qubes_cow_setup.sh @@ -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