[elbe-devel] [PATCH 8/9] tests: add a section to test <set_partition_type/>

Torben Hohn torben.hohn at linutronix.de
Mon Dec 14 17:41:12 CET 2020


<set_partition_type> has to be used in an <losetup> section.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 tests/simple-amd64-with-grub-tighten.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/simple-amd64-with-grub-tighten.xml b/tests/simple-amd64-with-grub-tighten.xml
index 1d79cff28..d10024482 100644
--- a/tests/simple-amd64-with-grub-tighten.xml
+++ b/tests/simple-amd64-with-grub-tighten.xml
@@ -67,6 +67,13 @@
 			<cp path="/etc/bash.bashrc">/root/.bashrc</cp>
 			<artifact>/etc/hosts</artifact>
 		</finetuning>
+
+		<project-finetuning>
+			<losetup img="sda.img">
+				<!-- globs work, but must make sure, that only a single file is matched -->
+				<set_partition_type part="2" type="14"/>
+			</losetup>
+		</project-finetuning>
 	</target>
 	<check-image-list>
 		<check>
-- 
2.20.1



More information about the elbe-devel mailing list