From c67afe0431f4abfc16eb9994239c3f21b56ad303 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 25 Oct 2012 11:06:57 +0100 Subject: Write metadata for the rootfs itself into the rootfs This makes it easier to identify what version of a system we are running. Tests are updated to check inside the contents of the rootfs we created, and the code to mount the rootfs as a loopback device was extracted out into tests.as-root/lib --- morphlib/plugins/tarball-systembuilder_plugin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'morphlib/plugins') diff --git a/morphlib/plugins/tarball-systembuilder_plugin.py b/morphlib/plugins/tarball-systembuilder_plugin.py index 95cae4cd..14807924 100644 --- a/morphlib/plugins/tarball-systembuilder_plugin.py +++ b/morphlib/plugins/tarball-systembuilder_plugin.py @@ -49,6 +49,7 @@ class RootfsTarballBuilder(SystemKindBuilder): # pragma: no cover try: fs_root = self.staging_area.destdir(self.artifact.source) self.unpack_strata(fs_root) + self.write_metadata(fs_root, rootfs_name) self.create_fstab(fs_root) self.copy_kernel_into_artifact_cache(fs_root) unslashy_root = fs_root[1:] -- cgit v1.2.1