Lines Matching refs:var
8 dd if=/dev/urandom of=/var/tmp/testimage.raw bs=$((1024*1024+7)) count=5
11 machinectl import-raw /var/tmp/testimage.raw
13 test -f /var/lib/machines/testimage.raw
14 cmp /var/tmp/testimage.raw /var/lib/machines/testimage.raw
17 machinectl export-raw testimage /var/tmp/testimage2.raw
18 cmp /var/tmp/testimage.raw /var/tmp/testimage2.raw
19 rm /var/tmp/testimage2.raw
22 machinectl export-raw testimage /var/tmp/testimage2.raw.gz
23 gunzip /var/tmp/testimage2.raw.gz
24 cmp /var/tmp/testimage.raw /var/tmp/testimage2.raw
25 rm /var/tmp/testimage2.raw
29 test -f /var/lib/machines/testimage3.raw
31 test -f /var/lib/machines/testimage.raw
33 cmp /var/tmp/testimage.raw /var/lib/machines/testimage.raw
34 cmp /var/tmp/testimage.raw /var/lib/machines/testimage3.raw
38 test ! -f /var/lib/machines/testimage.raw
42 machinectl export-raw testimage3 /var/tmp/testimage3.raw
43 cmp /var/tmp/testimage.raw /var/tmp/testimage3.raw
44 rm /var/tmp/testimage3.raw
48 test -f /var/lib/machines/testimage4.raw
50 test ! -f /var/lib/machines/testimage3.raw
52 cmp /var/tmp/testimage.raw /var/lib/machines/testimage4.raw
55 machinectl export-raw testimage4 /var/tmp/testimage4.raw
56 cmp /var/tmp/testimage.raw /var/tmp/testimage4.raw
57 rm /var/tmp/testimage4.raw
61 test ! -f /var/lib/machines/testimage4.raw
67 mkdir /var/tmp/scratch
68 mv /var/tmp/testimage.raw /var/tmp/scratch/
69 touch /var/tmp/scratch/anotherfile
70 mkdir /var/tmp/scratch/adirectory
71 echo "piep" >/var/tmp/scratch/adirectory/athirdfile
74 machinectl import-fs /var/tmp/scratch/
75 test -d /var/lib/machines/scratch
79 machinectl export-tar scratch /var/tmp/scratch.tar.gz
80 test -f /var/tmp/scratch.tar.gz
81 mkdir /var/tmp/extract
82 (cd /var/tmp/extract ; tar xzf /var/tmp/scratch.tar.gz)
83 diff -r /var/tmp/scratch/ /var/tmp/extract/
84 rm -rf /var/tmp/extract
87 machinectl import-tar /var/tmp/scratch.tar.gz scratch2
88 test -d /var/lib/machines/scratch2
90 diff -r /var/tmp/scratch/ /var/lib/machines/scratch2
94 test ! -f /var/lib/machines/scratch
99 test -d /var/lib/machines/scratch2
101 test -d /var/lib/machines/scratch3
103 diff -r /var/tmp/scratch/ /var/lib/machines/scratch3
107 test ! -f /var/lib/machines/scratch2
112 test -d /var/lib/machines/scratch4
114 test ! -f /var/lib/machines/scratch3
116 diff -r /var/tmp/scratch/ /var/lib/machines/scratch4
120 test ! -f /var/lib/machines/scratch4
125 cat /var/tmp/scratch.tar.gz | machinectl import-tar - scratch5
126 test -d /var/lib/machines/scratch5
128 diff -r /var/tmp/scratch/ /var/lib/machines/scratch5
131 mkdir -p /var/tmp/extract
132 machinectl export-tar scratch5 - | tar xvf - -C /var/tmp/extract/
133 diff -r /var/tmp/scratch/ /var/tmp/extract/
134 rm -rf /var/tmp/extract
136 rm -rf /var/tmp/scratch
140 test ! -f /var/lib/machines/scratch5