diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-10-25 11:06:57 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-10-26 13:43:58 +0100 |
commit | c67afe0431f4abfc16eb9994239c3f21b56ad303 (patch) | |
tree | 4dcc13c491a68211e375f8ceda0f04491d66a4af /morphlib/plugins | |
parent | 2bcc7ba44734c73a4a80b40b80a42b1376af5e00 (diff) | |
download | morph-c67afe0431f4abfc16eb9994239c3f21b56ad303.tar.gz |
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
Diffstat (limited to 'morphlib/plugins')
-rw-r--r-- | morphlib/plugins/tarball-systembuilder_plugin.py | 1 |
1 files changed, 1 insertions, 0 deletions
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:] |