]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
8 years ago… is not None is the preferred form 21/head
Zbigniew Jędrzejewski-Szmek [Thu, 29 Sep 2016 09:07:11 +0000 (05:07 -0400)] 
… is not None is the preferred form

Also try to put None as the "else" argument instead of the "if" one
in ternary expressions.

8 years agoSome trivial style fixes
Zbigniew Jędrzejewski-Szmek [Thu, 29 Sep 2016 08:59:56 +0000 (04:59 -0400)] 
Some trivial style fixes

- no spaces around parameter assignment in function calls
- avoid unneeded concatenation in subprocess.run calls
- division operator always uses floats, no need to cast
- use os.makedirs(…, exist_ok=True) instead of catching exception
- use .get instead of catching exception

8 years agodebian: do not fail if root/etc/dracut.conf.d already exists (#19)
Felipe Sateler [Sat, 1 Oct 2016 07:10:43 +0000 (04:10 -0300)] 
debian: do not fail if root/etc/dracut.conf.d already exists (#19)

This can happen if dracut is asked to be installed by the user

8 years agoInstall dbus and libpam-systemd with debootstrap (#16)
Lucas Werkmeister [Thu, 29 Sep 2016 08:24:45 +0000 (10:24 +0200)] 
Install dbus and libpam-systemd with debootstrap (#16)

Both packages are recommended by the Debian systemd package, but
debootstrap does not install Recommends.

Installing dbus fixes #15; the addition of libpam-systemd was suggested
by @stefan-it in that same issue.

8 years agoAllow specifying kernel command line in bootable images (#18)
Felipe Sateler [Thu, 29 Sep 2016 08:22:11 +0000 (05:22 -0300)] 
Allow specifying kernel command line in bootable images (#18)

8 years agoDo not install usrmerge on Debian/Ubuntu images (#17)
Felipe Sateler [Thu, 22 Sep 2016 13:09:54 +0000 (10:09 -0300)] 
Do not install usrmerge on Debian/Ubuntu images (#17)

This reverts commit a7f5575b1a49cee812e3b4f6f105b2d8ce111bee

Turns out debootstrap now has native support for merged /usr, and will likely be default (for the supported targets) in the near future.

Thus disable explicitly installing usrmerge, unbreaking the generation of debian < stretch and ubuntu images.

8 years agoFix arch mirror selection (#13)
Davide Cavalca [Fri, 2 Sep 2016 21:52:39 +0000 (14:52 -0700)] 
Fix arch mirror selection (#13)

8 years agoMerge pull request #12 from davide125/mirror
Lennart Poettering [Thu, 1 Sep 2016 22:22:36 +0000 (00:22 +0200)] 
Merge pull request #12 from davide125/mirror

Mirror selection support and Fedora build improvements

8 years agoUse local gpg key if available 12/head
Davide Cavalca [Thu, 1 Sep 2016 18:15:14 +0000 (11:15 -0700)] 
Use local gpg key if available

8 years agoAdd option to use a custom mirror
Davide Cavalca [Thu, 1 Sep 2016 16:57:54 +0000 (09:57 -0700)] 
Add option to use a custom mirror

8 years agoGenerate dnf.conf when installing Fedora
Davide Cavalca [Thu, 1 Sep 2016 16:47:03 +0000 (09:47 -0700)] 
Generate dnf.conf when installing Fedora

8 years agodistro: Enable community repository in Arch Linux package manager configuration....
Stefan [Wed, 31 Aug 2016 14:22:44 +0000 (16:22 +0200)] 
distro: Enable community repository in Arch Linux package manager configuration. (#11)

8 years agodoc: Use correct output format commandline option. (#10)
Stefan [Tue, 30 Aug 2016 14:20:35 +0000 (16:20 +0200)] 
doc: Use correct output format commandline option. (#10)

8 years agoFix installation for Ubuntu. (#8)
Stefan [Tue, 30 Aug 2016 14:20:05 +0000 (16:20 +0200)] 
Fix installation for Ubuntu. (#8)

8 years agoMerge pull request #7 from fsateler/deb-bootable
Lennart Poettering [Tue, 30 Aug 2016 14:18:51 +0000 (16:18 +0200)] 
Merge pull request #7 from fsateler/deb-bootable

RFC: Better support for debian-based distros

9 years agoAdd bootable image support for debian 7/head
Felipe Sateler [Sat, 27 Aug 2016 19:20:18 +0000 (16:20 -0300)] 
Add bootable image support for debian

9 years agoInstall usrmerge in debian/ubuntu images
Felipe Sateler [Sat, 27 Aug 2016 19:00:15 +0000 (16:00 -0300)] 
Install usrmerge in debian/ubuntu images

9 years agoAdd cache support for debootstrap
Felipe Sateler [Sat, 27 Aug 2016 18:59:32 +0000 (15:59 -0300)] 
Add cache support for debootstrap

9 years agoMerge pull request #4 from L3n41c/arch
Lennart Poettering [Sun, 21 Aug 2016 13:41:56 +0000 (15:41 +0200)] 
Merge pull request #4 from L3n41c/arch

Miscellaneous fixes for ArchLinux

9 years agoRenames README to README.md and uses nice markdown. (#6)
Stefan [Sun, 21 Aug 2016 13:32:46 +0000 (15:32 +0200)] 
Renames README to README.md and uses nice markdown. (#6)

9 years agoFix ArchLinux image build on non-ArchLinux host 4/head
Lénaïc Huard [Sun, 7 Aug 2016 23:26:36 +0000 (01:26 +0200)] 
Fix ArchLinux image build on non-ArchLinux host

9 years agoCustomize the packages installed on ArchLinux
Lénaïc Huard [Sun, 7 Aug 2016 21:50:30 +0000 (23:50 +0200)] 
Customize the packages installed on ArchLinux

9 years agoSetup networkd on ArchLinux
Lénaïc Huard [Sun, 7 Aug 2016 21:46:03 +0000 (23:46 +0200)] 
Setup networkd on ArchLinux

9 years agoAdd the ability to create bootable ArchLinux images
Lénaïc Huard [Sun, 7 Aug 2016 21:42:24 +0000 (23:42 +0200)] 
Add the ability to create bootable ArchLinux images

9 years agoSet the nocow attribute on the image file
Lénaïc Huard [Sun, 7 Aug 2016 21:35:28 +0000 (23:35 +0200)] 
Set the nocow attribute on the image file

9 years agoidentation: newlines proposed (#3)
Renich Bon Ciric [Fri, 19 Aug 2016 15:42:51 +0000 (10:42 -0500)] 
identation: newlines proposed (#3)

Fixed a few identation patterns by adding/removing new lines here and there.

There were a lot of cases where I didn't know how to proceed in order to make indentation more consistent. I'd like to suggest
keeping to a coding standard. For python, there is pip8.

You could use a tox.ini to configure it and run it. Maybe, even, add a git-hook to run it and prevent non-compilant code from making
it into the repo.

Here's a minimal setup for a tox.ini file:

    # tox.ini
    [pep8]
    filename = mkosi, *.py
    max-line-length = 132
    # count =
    # exclude =
    # format =
    # hang-closing =
    # ignore =
    # quiet =
    # select =
    # show-pep8 =
    # show-source =
    # statistics =
    # verbose =

More info about this at: https://www.python.org/dev/peps/pep-0008/
Tool to check: https://github.com/PyCQA/pep8

9 years agomark root disk writable by default
Lennart Poettering [Fri, 22 Jul 2016 15:45:31 +0000 (17:45 +0200)] 
mark root disk writable by default

9 years agomkosi: fill in distro version earlier, so that "mkosi summary" can show it
Lennart Poettering [Tue, 19 Jul 2016 19:21:35 +0000 (21:21 +0200)] 
mkosi: fill in distro version earlier, so that "mkosi summary" can show it

9 years agoupdate TODO
Lennart Poettering [Tue, 19 Jul 2016 19:21:30 +0000 (21:21 +0200)] 
update TODO

9 years agoSync after creating partition table (#1)
Felipe Sateler [Tue, 19 Jul 2016 11:13:39 +0000 (07:13 -0400)] 
Sync after creating partition table (#1)

Otherwise mkfs.* might be invoked before the kernel realizes there are partitions in the loop device.

9 years agodon't crash if release is not specified (#2)
Felipe Sateler [Tue, 19 Jul 2016 11:12:19 +0000 (07:12 -0400)] 
don't crash if release is not specified (#2)

9 years agodrop "ro" from the kernel command line
Lennart Poettering [Fri, 15 Jul 2016 10:21:51 +0000 (12:21 +0200)] 
drop "ro" from the kernel command line

9 years agofix invokation without a local build script
Lennart Poettering [Fri, 15 Jul 2016 09:08:26 +0000 (11:08 +0200)] 
fix invokation without a local build script

9 years agoadd a minimal setuptools script
Lennart Poettering [Fri, 15 Jul 2016 08:46:57 +0000 (10:46 +0200)] 
add a minimal setuptools script

9 years agoadd a proper LICENSE
Lennart Poettering [Fri, 15 Jul 2016 08:44:41 +0000 (10:44 +0200)] 
add a proper LICENSE

9 years agoembedd unshare.py directly in the main source file, so that we have a single source...
Lennart Poettering [Fri, 15 Jul 2016 08:43:20 +0000 (10:43 +0200)] 
embedd unshare.py directly in the main source file, so that we have a single source file only

9 years agoswitch to the srcdir if there is one specified
Lennart Poettering [Thu, 14 Jul 2016 20:31:45 +0000 (22:31 +0200)] 
switch to the srcdir if there is one specified

This way build scripts don't have to switch to the srcdir first.

9 years agoupdate .gitignore file
Lennart Poettering [Thu, 14 Jul 2016 20:31:37 +0000 (22:31 +0200)] 
update .gitignore file

9 years agobeef up README
Lennart Poettering [Wed, 13 Jul 2016 19:10:04 +0000 (21:10 +0200)] 
beef up README

9 years agooptionally change to a specified working directory
Lennart Poettering [Wed, 13 Jul 2016 17:36:41 +0000 (19:36 +0200)] 
optionally change to a specified working directory

9 years agomkosi: add support for running arbitrary build logic within the image setup
Lennart Poettering [Wed, 13 Jul 2016 17:13:33 +0000 (19:13 +0200)] 
mkosi: add support for running arbitrary build logic within the image setup

If an executable script "mkosi.build" exists in the local directory, the
build logic will now build the image twice. First, it will build an
image that the working directory and "mkosi.build" is copied into (under
the assumption the tool is called from a source tree of a project). It
then runs that script inside the image via nspawn, and collects any
output it places in a directory passed as $DESTDIR. Then, it throws the
first image away, builds a new one, this time avoiding any source tree or
script copying. However, as final step of the image preparation the tree
from $DESTDIR is copied into the image.

The first image may optionally contain additional distro packages, on
top of the packages the final image will contain. This is useful for
adding in development headers and suchlike.

The suggested usecase for this is the following: let's say you develop a
project, and want to quickly build an OS image from it, with your
current development tree as source tree for the build, and you want to
build to take place inside an image that resembles the ultimate image to
generate as closely as possible. Hence we first build an image with all
development headers for compiling your project. Then artifacts it
generates are then included in the more minimal second image, which is
the result.

9 years agofix logic when run without defaults file
Lennart Poettering [Wed, 13 Jul 2016 10:30:12 +0000 (12:30 +0200)] 
fix logic when run without defaults file

9 years agofix swap size display in summary
Lennart Poettering [Wed, 13 Jul 2016 10:16:14 +0000 (12:16 +0200)] 
fix swap size display in summary

9 years agoadd new summary verb for showing just the summary
Lennart Poettering [Wed, 13 Jul 2016 10:16:05 +0000 (12:16 +0200)] 
add new summary verb for showing just the summary

9 years agoallow comma separated values to be passed to --package=
Lennart Poettering [Wed, 13 Jul 2016 10:12:49 +0000 (12:12 +0200)] 
allow comma separated values to be passed to --package=

9 years agofix cache management on btrfs
Lennart Poettering [Wed, 13 Jul 2016 10:01:29 +0000 (12:01 +0200)] 
fix cache management on btrfs

9 years agoprint a summary before starting operation
Lennart Poettering [Wed, 13 Jul 2016 09:19:07 +0000 (11:19 +0200)] 
print a summary before starting operation

9 years agonormalize a few settings before starting operation
Lennart Poettering [Wed, 13 Jul 2016 09:18:48 +0000 (11:18 +0200)] 
normalize a few settings before starting operation

9 years agomove nspawn settings option into PACKAGES section
Lennart Poettering [Wed, 13 Jul 2016 09:18:28 +0000 (11:18 +0200)] 
move nspawn settings option into PACKAGES section

9 years agoadd an extra argument group for the commands
Lennart Poettering [Wed, 13 Jul 2016 08:35:15 +0000 (10:35 +0200)] 
add an extra argument group for the commands

9 years agoadd "mkosi clean" as verb to remove all generated artifacts
Lennart Poettering [Wed, 13 Jul 2016 08:31:28 +0000 (10:31 +0200)] 
add "mkosi clean" as verb to remove all generated artifacts

9 years agoautomatically use "mkosi.extra" in the current directory as extra subdir
Lennart Poettering [Wed, 13 Jul 2016 08:02:40 +0000 (10:02 +0200)] 
automatically use "mkosi.extra" in the current directory as extra subdir

With this mkosi.default in the local dir may contain config data,
mkosi.nspawn may contain nspawn settings data and mkosi.extra may
contain extra drop-in files for the image.

9 years agominor message fixes
Lennart Poettering [Tue, 12 Jul 2016 20:23:38 +0000 (22:23 +0200)] 
minor message fixes

9 years agooptionally copy extra file trees on top of image tree
Lennart Poettering [Tue, 12 Jul 2016 20:23:11 +0000 (22:23 +0200)] 
optionally copy extra file trees on top of image tree

9 years agolook for "mkosi.nspawn" in the local directory, and use it if it exists
Lennart Poettering [Tue, 12 Jul 2016 19:20:48 +0000 (21:20 +0200)] 
look for "mkosi.nspawn" in the local directory, and use it if it exists

Similar to "mkosi.default" this is useful for projects that need an
easy way to define an nspawn file in the source tree.

9 years agooptionally, read additional settings from "default.mkosi" in the local directory
Lennart Poettering [Tue, 12 Jul 2016 19:09:23 +0000 (21:09 +0200)] 
optionally, read additional settings from "default.mkosi" in the local directory

Projects may ship such a file to make it easy to build images from their
tree.

9 years agosplit up main function into seperate functions
Lennart Poettering [Tue, 12 Jul 2016 17:42:42 +0000 (19:42 +0200)] 
split up main function into seperate functions

9 years agofix building ubuntu images
Lennart Poettering [Tue, 12 Jul 2016 16:50:11 +0000 (18:50 +0200)] 
fix building ubuntu images

9 years agoprint a nice error when invoked as non-root
Lennart Poettering [Tue, 12 Jul 2016 16:40:06 +0000 (18:40 +0200)] 
print a nice error when invoked as non-root

9 years agoapply caller's umask to resulting files
Lennart Poettering [Tue, 12 Jul 2016 16:39:50 +0000 (18:39 +0200)] 
apply caller's umask to resulting files

9 years agooptionally install a .nspawn fiel companion and include it in the SHA256SUM
Lennart Poettering [Tue, 12 Jul 2016 14:54:25 +0000 (16:54 +0200)] 
optionally install a .nspawn fiel companion and include it in the SHA256SUM

9 years agocache packages if possible (on dnf)
Lennart Poettering [Tue, 12 Jul 2016 14:21:08 +0000 (16:21 +0200)] 
cache packages if possible (on dnf)

9 years agoclarify which option is supported when in --help
Lennart Poettering [Tue, 12 Jul 2016 14:20:36 +0000 (16:20 +0200)] 
clarify which option is supported when in --help

9 years agogroup --help text nicely
Lennart Poettering [Tue, 12 Jul 2016 13:42:40 +0000 (15:42 +0200)] 
group --help text nicely

9 years agoadd a friendly hint to use --force
Lennart Poettering [Tue, 12 Jul 2016 13:35:08 +0000 (15:35 +0200)] 
add a friendly hint to use --force

9 years agomake installation of docs optional
Lennart Poettering [Tue, 12 Jul 2016 13:34:44 +0000 (15:34 +0200)] 
make installation of docs optional

9 years agofix unshare (i.e. run everything in an fs namespace)
Lennart Poettering [Tue, 12 Jul 2016 12:42:23 +0000 (14:42 +0200)] 
fix unshare (i.e. run everything in an fs namespace)

This way, mounts we add won't leak onto the host, and will go away
automatically when we die.

9 years agoupdate TODO
Lennart Poettering [Tue, 12 Jul 2016 08:12:46 +0000 (10:12 +0200)] 
update TODO

9 years agooptionally sign the result
Lennart Poettering [Tue, 12 Jul 2016 08:32:06 +0000 (10:32 +0200)] 
optionally sign the result

9 years agoadd README
Lennart Poettering [Tue, 12 Jul 2016 08:11:43 +0000 (10:11 +0200)] 
add README

9 years agooptionally mark root subvolume read-only
Lennart Poettering [Tue, 12 Jul 2016 08:10:50 +0000 (10:10 +0200)] 
optionally mark root subvolume read-only

9 years agooptionally enable btrfs compression
Lennart Poettering [Tue, 12 Jul 2016 07:54:30 +0000 (09:54 +0200)] 
optionally enable btrfs compression

9 years agofix log messages
Lennart Poettering [Tue, 12 Jul 2016 07:33:30 +0000 (09:33 +0200)] 
fix log messages

9 years agoadd support for calculating SHA256SUM
Lennart Poettering [Tue, 12 Jul 2016 07:33:01 +0000 (09:33 +0200)] 
add support for calculating SHA256SUM

9 years agoInitial commit
Lennart Poettering [Tue, 12 Jul 2016 06:08:08 +0000 (08:08 +0200)] 
Initial commit