Lines Matching refs:image
29 image="${image_dir}/minimal_0"
30 roothash="$(cat "${image}.roothash")"
34 systemd-dissect --json=short "${image}.raw" | grep -q -F '{"rw":"ro","designator":"root","partition…
35 systemd-dissect "${image}.raw" | grep -q -F "MARKER=1"
36 systemd-dissect "${image}.raw" | grep -q -F -f <(sed 's/"//g' "$os_release")
38 mv "${image}.verity" "${image}.fooverity"
39 mv "${image}.roothash" "${image}.foohash"
40 systemd-dissect --json=short "${image}.raw" --root-hash="${roothash}" --verity-data="${image}.foove…
41 systemd-dissect "${image}.raw" --root-hash="${roothash}" --verity-data="${image}.fooverity" | grep …
42 systemd-dissect "${image}.raw" --root-hash="${roothash}" --verity-data="${image}.fooverity" | grep …
43 mv "${image}.fooverity" "${image}.verity"
44 mv "${image}.foohash" "${image}.roothash"
47 systemd-dissect --mount "${image}.raw" "${image_dir}/mount"
52 systemd-dissect --mount "${image}.raw" "${image_dir}/mount2"
58 echo "Verity device ${image}.raw not found in /dev/mapper/"
64 systemd-run -P -p RootImage="${image}.raw" cat /usr/lib/os-release | grep -q -F "MARKER=1"
65 mv "${image}.verity" "${image}.fooverity"
66 mv "${image}.roothash" "${image}.foohash"
67 systemd-run -P -p RootImage="${image}.raw" -p RootHash="${image}.foohash" -p RootVerity="${image}.f…
69 …ystemd-run -P --property RootImage="${image}.raw" --property RootHash="${roothash}" --property Roo…
70 mv "${image}.fooverity" "${image}.verity"
71 mv "${image}.foohash" "${image}.roothash"
120 root_size="$(du -k "${image}.raw" | cut -f1)"
121 verity_size="$(du -k "${image}.verity" | cut -f1)"
124 dd if=/dev/zero of="${image}.gpt" bs=512 count=$((8192+root_size*2+verity_size*2+signature_size*2))
146 cat >> "${image}.openssl.cnf" <<EOF
162 …openssl req -config "${image}.openssl.cnf" -new -x509 -newkey rsa:1024 -keyout "${image}.key" -out…
164 …-nocerts -noattr -binary -in "${image}.roothash" -inkey "${image}.key" -signer "${image}.crt" -out…
166 …Hash":"'"${roothash}"'","signature":"'"$(base64 -w 0 < "${image}.roothash.p7s")"'"}' > "${image}.v…
168 truncate -s "${signature_size}" "${image}.verity-sig"
171 ln -s "${image}.crt" /run/verity.d/ok.crt
177 uuid="$(head -c 32 "${image}.roothash" | sed -r 's/(.{8})(.{4})(.{4})(.{4})(.+)/\1-\2-\3-\4-\5/')"
178 echo -e "label: gpt\nsize=${root_size}, type=${root_guid}, uuid=${uuid}" | sfdisk "${image}.gpt"
179 uuid="$(tail -c 32 "${image}.roothash" | sed -r 's/(.{8})(.{4})(.{4})(.{4})(.+)/\1-\2-\3-\4-\5/')"
180 echo -e "size=${verity_size}, type=${verity_guid}, uuid=${uuid}" | sfdisk "${image}.gpt" --append
182 echo -e "size=${signature_size}, type=${signature_guid}" | sfdisk "${image}.gpt" --append
184 sfdisk --part-label "${image}.gpt" 1 "Root Partition"
185 sfdisk --part-label "${image}.gpt" 2 "Verity Partition"
187 sfdisk --part-label "${image}.gpt" 3 "Signature Partition"
189 loop="$(losetup --show -P -f "${image}.gpt")"
190 dd if="${image}.raw" of="${loop}p1"
191 dd if="${image}.verity" of="${loop}p2"
193 dd if="${image}.verity-sig" of="${loop}p3"
198 ROOT_UUID="$(systemd-id128 -u show "$(head -c 32 "${image}.roothash")" -u | tail -n 1 | cut -b 6-)"
199 VERITY_UUID="$(systemd-id128 -u show "$(tail -c 32 "${image}.roothash")" -u | tail -n 1 | cut -b 6-…
201 systemd-dissect --json=short --root-hash "${roothash}" "${image}.gpt" | grep -q '{"rw":"ro","design…
202 systemd-dissect --json=short --root-hash "${roothash}" "${image}.gpt" | grep -q '{"rw":"ro","design…
203 systemd-dissect --root-hash "${roothash}" "${image}.gpt" | grep -q -F "MARKER=1"
204 systemd-dissect --root-hash "${roothash}" "${image}.gpt" | grep -q -F -f <(sed 's/"//g' "$os_releas…
206 systemd-dissect --root-hash "${roothash}" --mount "${image}.gpt" "${image_dir}/mount"
213 systemd-run -P -p RootImage="${image}.gpt" -p RootHash="${roothash}" -p MountAPIVFS=yes cat /usr/li…
215 systemd-run -P -p RootImage="${image}.raw" -p RootImageOptions="root:nosuid,dev home:ro,dev ro,noat…
216 systemd-run -P -p RootImage="${image}.gpt" -p RootImageOptions="root:ro,noatime root:ro,dev" mount …
225 RootImage=${image}.raw
239 RootImage=${image}.gpt
252 systemd-run -P -p MountImages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img1/usr/lib…
253 systemd-run -P -p MountImages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img2/usr/lib…
254 systemd-run -P -p MountImages="${image}.gpt:/run/img1 ${image}.raw:/run/img2:nosuid,dev" mount | gr…
255 systemd-run -P -p MountImages="${image}.gpt:/run/img1:root:nosuid ${image}.raw:/run/img2:home:suid"…
256 systemd-run -P -p MountImages="${image}.raw:/run/img2\:3" cat /run/img2:3/usr/lib/os-release | grep…
257 systemd-run -P -p MountImages="${image}.raw:/run/img2\:3:nosuid" mount | grep -F "squashfs" | grep …
258 …-P -p TemporaryFileSystem=/run -p RootImage="${image}.raw" -p MountImages="${image}.gpt:/run/img1 …
259 …-P -p TemporaryFileSystem=/run -p RootImage="${image}.raw" -p MountImages="${image}.gpt:/run/img1 …
260 …ryFileSystem=/run -p RootImage="${image}.gpt" -p RootHash="${roothash}" -p MountImages="${image}.g…
265 RootImage=${image}.raw
266 MountImages=${image}.gpt:/run/img1:root:noatime:home:relatime
267 MountImages=${image}.raw:/run/img2\:3:nosuid
292 systemctl mount-image --mkdir testservice-50d.service "${image}.raw" /tmp/img root:nosuid
302 systemd-run -P --property ExtensionImages=/usr/share/app0.raw --property RootImage="${image}.raw" c…
303 systemd-run -P --property ExtensionImages=/usr/share/app0.raw --property RootImage="${image}.raw" c…
304 …nImages="/usr/share/app0.raw /usr/share/app1.raw" --property RootImage="${image}.raw" cat /opt/scr…
305 …nImages="/usr/share/app0.raw /usr/share/app1.raw" --property RootImage="${image}.raw" cat /usr/lib…
306 …nImages="/usr/share/app0.raw /usr/share/app1.raw" --property RootImage="${image}.raw" cat /opt/scr…
307 …nImages="/usr/share/app0.raw /usr/share/app1.raw" --property RootImage="${image}.raw" cat /usr/lib…
313 RootImage=${image}.raw
327 …y ExtensionDirectories="${image_dir}/nonexistent" --property RootImage="${image}.raw" cat /opt/scr…
328 systemd-run -P --property ExtensionDirectories="${image_dir}/app0" --property RootImage="${image}.r…
331 systemd-run -P --property ExtensionDirectories="${image_dir}/app0" --property RootImage="${image}.r…
332 systemd-run -P --property ExtensionDirectories="${image_dir}/app0" --property RootImage="${image}.r…
333 …Directories="${image_dir}/app0 ${image_dir}/app1" --property RootImage="${image}.raw" cat /opt/scr…
334 …Directories="${image_dir}/app0 ${image_dir}/app1" --property RootImage="${image}.raw" cat /usr/lib…
335 …Directories="${image_dir}/app0 ${image_dir}/app1" --property RootImage="${image}.raw" cat /opt/scr…
336 …Directories="${image_dir}/app0 ${image_dir}/app1" --property RootImage="${image}.raw" cat /usr/lib…
342 RootImage=${image}.raw