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

Torben Hohn torben.hohn at linutronix.de
Tue Dec 15 17:33:18 CET 2020


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

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: Bastian Germann <bage 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 6078cfe08..c0bffb5d8 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