diff --git a/TODO b/TODO index 7acc4f5..72e6030 100644 --- a/TODO +++ b/TODO @@ -1 +1,4 @@ - maybe use ZConfig? https://pypi.python.org/pypi/ZConfig +- templating via jinja2: +-- for VERSION_INFO.txt +-- for syslinux/isolinux configs diff --git a/extra/pre-build.d/etc/os-release b/extra/pre-build.d/etc/os-release new file mode 100644 index 0000000..30e5cf3 --- /dev/null +++ b/extra/pre-build.d/etc/os-release @@ -0,0 +1,7 @@ +NAME="Arch Linux" +ID=arch +PRETTY_NAME="Arch Linux" +ANSI_COLOR="0;36" +HOME_URL="https://www.archlinux.org/" +SUPPORT_URL="https://bbs.archlinux.org/" +BUG_REPORT_URL="https://bugs.archlinux.org/" diff --git a/templates/VERSION_INFO.txt.j2 b/templates/VERSION_INFO.txt.j2 new file mode 100644 index 0000000..b9f9387 --- /dev/null +++ b/templates/VERSION_INFO.txt.j2 @@ -0,0 +1,5 @@ +Version: {{ build['ver'] }} +Build: {{ build['name'] }} +Time: {{ build['time'] }} +Machine: {{ build['host'] }} +User: {{ build['user'] }} ({{ build['realuser'] }})