summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2013-07-02 15:37:58 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2013-07-02 17:17:22 +0100
commit2be46a7d29f54365aa0033ad8d6998f75ca39fcb (patch)
tree770b2ee02873e28bd2ed1735574921627bb90bd3 /morphlib/builder2.py
parentcc04afc00f35dc00e03c9ab207bbc2e5513812d0 (diff)
downloadmorph-2be46a7d29f54365aa0033ad8d6998f75ca39fcb.tar.gz
Make /etc/os-release have the easy info
Diffstat (limited to 'morphlib/builder2.py')
-rw-r--r--morphlib/builder2.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 69ca9e1c..c1f1fe50 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -635,10 +635,12 @@ class SystemBuilder(BuilderBase): # pragma: no cover
if not os.path.exists(dirname):
os.makedirs(dirname)
with morphlib.savefile.SaveFile(os_release_file, 'w') as f:
- f.write('Baserock %s, built from ref %s on %s\n' %
- (self.artifact.source.morphology['name'],
- self.artifact.source.original_ref,
- datetime.date.today()))
+ f.write('NAME="Baserock"\n')
+ f.write('ID=baserock\n')
+ f.write('HOME_URL="http://wiki.baserock.org"\n')
+ f.write('SUPPORT_URL="http://wiki.baserock.org/mailinglist"\n')
+ f.write('BUG_REPORT_URL="http://wiki.baserock.org/mailinglist"\n')
+
os.chmod(os_release_file, 0644)
def create_fstab(self, path):