]> WPIA git - gigi.git/commit
add: mkosi files
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Mon, 26 Feb 2018 01:02:35 +0000 (02:02 +0100)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 9 Jun 2018 11:10:10 +0000 (13:10 +0200)
commite484c80ea0ced66f8e028e8662a47f80c28da88d
treebe581ddae8c0ff4e10a4e8302b5affe0ecf423e2
parentae597bec20698647ac34a250abaec0a7c4591722
add: mkosi files

mkosi is a tool to build operating system images, possibly with some
software pre-built inside it. This commit adds mkosi configuration files
for building the Debian packages for Gigi on any distribution supported
by mkosi. The *.deb files will be placed in the srv/ directory of the
resulting image (image/srv/*.deb).

Note that mkosi doesn’t include git information in the build tree, so
the changelog used for the packages is whatever is currently in the
source tree. Consider running doc/scripts/genchangelog before mkosi.

The packages are also, unfortunately, not yet deterministic. The
strip-nondeterminism debhelper step uses the date from the changelog (so
if doc/scripts/genchangelog was run before the build started, that part
is deterministic), but it only seems to adjust the timestamps of the
three files in the .deb archives, not of the files within those .tar.*
archives.

A post-install script is included that could potentially be used to
actually install the packages inside the built image. However, that part
doesn’t yet work, so it’s disabled for now: the post-install scripts of
the packages have some extra requirements (more packages, an internet
connection) which mkosi doesn’t satisfy by default, and I didn’t want to
spend more time to find out if it can be made to work. This might be
fixed in a future commit, but even then, it’s not clear if such an image
would be very useful.

Change-Id: Ib966760b31f75cf0e8892428b6a8c6dba5ec5f2e
mkosi.build [new file with mode: 0755]
mkosi.default [new file with mode: 0644]
mkosi.postinst [new file with mode: 0755]