]> git.ipfire.org Git - thirdparty/mkosi.git/log
thirdparty/mkosi.git
5 years agoRemove redundents indents and align some params. 427/head
Nicolas Di Pietro [Fri, 29 May 2020 16:37:40 +0000 (18:37 +0200)] 
Remove redundents indents and align some params.

5 years agoChange tab indents to spaces
Nicolas Di Pietro [Fri, 29 May 2020 08:16:45 +0000 (10:16 +0200)] 
Change tab indents to spaces

Nothing more has been changed to have a clean commit about that.

5 years agoUpdate editorconfig for space indent.
Nicolas Di Pietro [Fri, 29 May 2020 07:56:20 +0000 (09:56 +0200)] 
Update editorconfig for space indent.

This will not be effective right now since the main file is NOT mkosi.py
Only for future usage

5 years agomkosi: add Fedora 32
Vishal Verma [Wed, 27 May 2020 01:31:54 +0000 (19:31 -0600)] 
mkosi: add Fedora 32

Add the Fedora 32 GPG key to the list, and update mkosi.fedora to 32.

5 years agoMerge pull request #411 from fernandolobato/usrmerge
Lucas De Marchi [Thu, 14 May 2020 20:49:07 +0000 (13:49 -0700)] 
Merge pull request #411 from fernandolobato/usrmerge

Add usrmerge for ubuntu previous to 18.04

5 years agoMerge pull request #412 from johnp789/fix-ci-arch
Lucas De Marchi [Thu, 14 May 2020 20:46:04 +0000 (13:46 -0700)] 
Merge pull request #412 from johnp789/fix-ci-arch

Fix ci-arch.yml to support zstd-compressed packages

5 years agoUpdate ci-arch.yml 412/head
John Pitney [Sat, 4 Apr 2020 22:34:50 +0000 (17:34 -0500)] 
Update ci-arch.yml

This installs libzstd1-dev as an additional package, then downloads and
builds libarchive, so that the resulting library supports zstd.

5 years agoMerge pull request #419 from DaanDeMeyer/error-improvements
Lucas De Marchi [Thu, 14 May 2020 19:28:00 +0000 (12:28 -0700)] 
Merge pull request #419 from DaanDeMeyer/error-improvements

Error handling improvements

5 years agoGracefully handle build script failures 419/head
Daan De Meyer [Thu, 14 May 2020 18:28:35 +0000 (20:28 +0200)] 
Gracefully handle build script failures

5 years agoPrint errors in bold + bright red
Daan De Meyer [Thu, 14 May 2020 18:27:19 +0000 (20:27 +0200)] 
Print errors in bold + bright red

5 years agoAdd editorconfig file
Daan De Meyer [Thu, 14 May 2020 18:26:50 +0000 (20:26 +0200)] 
Add editorconfig file

5 years agoMerge pull request #394 from poettering/var-tmp-var
Lennart Poettering [Mon, 11 May 2020 22:02:11 +0000 (00:02 +0200)] 
Merge pull request #394 from poettering/var-tmp-var

optionally generate /var/tmp and /var partitions, and include repart in images, and more

5 years agoMerge pull request #415 from dyejon/armv7l
Lennart Poettering [Mon, 11 May 2020 22:01:41 +0000 (00:01 +0200)] 
Merge pull request #415 from dyejon/armv7l

build ubuntu on armv7l

5 years agoadd repository print 415/head
thon [Sat, 2 May 2020 21:14:09 +0000 (21:14 +0000)] 
add repository print

5 years agoodroid / armv7l / armhf fix
thon [Fri, 1 May 2020 23:57:51 +0000 (23:57 +0000)] 
odroid / armv7l / armhf fix

5 years agoony add this package for bootable images 411/head
fernandolobato [Thu, 2 Apr 2020 00:41:32 +0000 (17:41 -0700)] 
ony add this package for bootable images

5 years agoAdd usrmerge for ubuntu previous to 19.04
fernandolobato [Wed, 1 Apr 2020 23:29:03 +0000 (16:29 -0700)] 
Add usrmerge for ubuntu previous to 19.04

5 years agoMerge pull request #402 from fernandolobato/ubuntu-unified-kernel
Lucas De Marchi [Thu, 26 Mar 2020 15:18:05 +0000 (08:18 -0700)] 
Merge pull request #402 from fernandolobato/ubuntu-unified-kernel

Changes to support unified kernel+initrd in Ubuntu

5 years agoMerge pull request #408 from lucasdemarchi/tip-fix-ci
Lucas De Marchi [Thu, 26 Mar 2020 15:15:06 +0000 (08:15 -0700)] 
Merge pull request #408 from lucasdemarchi/tip-fix-ci

ci: add missing "run" arg to debug

5 years agoci: trigger on pull requests 408/head
Lucas De Marchi [Thu, 19 Mar 2020 05:40:22 +0000 (22:40 -0700)] 
ci: trigger on pull requests

5 years agoci: add missing "run" arg to debug
Lucas De Marchi [Thu, 19 Mar 2020 05:32:39 +0000 (22:32 -0700)] 
ci: add missing "run" arg to debug

Fix CI:
mkosi: error: argument --debug: expected one argument
[error]Process completed with exit code 2.

5 years agoMerge pull request #398 from nicoulaj/archlinux-repositories
Lucas De Marchi [Tue, 17 Mar 2020 08:19:38 +0000 (01:19 -0700)] 
Merge pull request #398 from nicoulaj/archlinux-repositories

add basic support for --repositories option for Arch Linux

5 years agoMerge pull request #399 from zhsj/fix-squashfs
Lucas De Marchi [Tue, 17 Mar 2020 08:15:40 +0000 (01:15 -0700)] 
Merge pull request #399 from zhsj/fix-squashfs

Fix mount squashfs on kernel 5.4

5 years agoMerge pull request #406 from killermoehre/master
Lucas De Marchi [Tue, 17 Mar 2020 08:12:42 +0000 (01:12 -0700)] 
Merge pull request #406 from killermoehre/master

Add Github Actions for CI work

5 years agoChanges to support unified kernel+initrd in Ubuntu 402/head
fernandolobato [Thu, 20 Feb 2020 23:39:17 +0000 (15:39 -0800)] 
Changes to support unified kernel+initrd in Ubuntu

5 years agoci-clear: symlink swupd-extract directly into $PATH 406/head
Silvio Knizek [Wed, 11 Mar 2020 15:23:36 +0000 (16:23 +0100)] 
ci-clear: symlink swupd-extract directly into $PATH

5 years agoci-clear: add go bin path to find swupd-extract
Silvio Knizek [Wed, 11 Mar 2020 15:19:58 +0000 (16:19 +0100)] 
ci-clear: add go bin path to find swupd-extract

5 years agoci: enable debug for CnetOS, enable ClearOS
Silvio Knizek [Wed, 11 Mar 2020 15:16:15 +0000 (16:16 +0100)] 
ci: enable debug for CnetOS, enable ClearOS

5 years agoci-arch: add asciidoc dep for arch-install-scripts
Silvio Knizek [Tue, 10 Mar 2020 23:31:30 +0000 (00:31 +0100)] 
ci-arch: add asciidoc dep for arch-install-scripts

5 years agoci-arch: replace arch-install-script package
Silvio Knizek [Tue, 10 Mar 2020 23:16:48 +0000 (00:16 +0100)] 
ci-arch: replace arch-install-script package

for some unknown reason the arch-install-script package does _not_
include the pacstrap script. so we need to build this by ourself

5 years agoci-arch: add dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 23:03:35 +0000 (00:03 +0100)] 
ci-arch: add dependency for pacman

5 years agoci-arch: use the newer python and enable debug
Silvio Knizek [Tue, 10 Mar 2020 22:59:57 +0000 (23:59 +0100)] 
ci-arch: use the newer python and enable debug

5 years agoci-arch: populate arch keyring before using
Silvio Knizek [Tue, 10 Mar 2020 22:43:41 +0000 (23:43 +0100)] 
ci-arch: populate arch keyring before using

5 years agoci-arch: include compile fix for pacman
Silvio Knizek [Tue, 10 Mar 2020 22:36:25 +0000 (23:36 +0100)] 
ci-arch: include compile fix for pacman

5 years agoci-arch: add gpgme dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 22:16:58 +0000 (23:16 +0100)] 
ci-arch: add gpgme dependency for pacman

5 years agoci-arch: add the keyring from arch linux as well
Silvio Knizek [Tue, 10 Mar 2020 22:04:45 +0000 (23:04 +0100)] 
ci-arch: add the keyring from arch linux as well

5 years agoci-arch: add libarchive dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 21:57:05 +0000 (22:57 +0100)] 
ci-arch: add libarchive dependency for pacman

5 years agoci-arch: add pacman from source
Silvio Knizek [Tue, 10 Mar 2020 21:54:31 +0000 (22:54 +0100)] 
ci-arch: add pacman from source

5 years agoci: remove subvolume test
Silvio Knizek [Tue, 10 Mar 2020 21:33:54 +0000 (22:33 +0100)] 
ci: remove subvolume test

the ubuntu host itself does not allow for subvolumes as it is not btrfs
based

5 years agouse an empty defaults file
Silvio Knizek [Tue, 10 Mar 2020 21:28:17 +0000 (22:28 +0100)] 
use an empty defaults file

else the default mkosi.default will be used, which is fedora specific
    and does contain many unneeded packages

5 years agomake debian based CIs actually build deb based
Silvio Knizek [Tue, 10 Mar 2020 21:19:50 +0000 (22:19 +0100)] 
make debian based CIs actually build deb based

5 years agorename variable proper
Silvio Knizek [Tue, 10 Mar 2020 21:15:56 +0000 (22:15 +0100)] 
rename variable proper

5 years agosplit up github ci definition
Silvio Knizek [Tue, 10 Mar 2020 21:13:13 +0000 (22:13 +0100)] 
split up github ci definition

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:49:35 +0000 (21:49 +0100)] 
Update ci-ubuntu.yml

— new package managers
— disable boot support

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:37:00 +0000 (21:37 +0100)] 
Update ci-ubuntu.yml

test everything

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:26:32 +0000 (21:26 +0100)] 
Update ci-ubuntu.yml

enable debug ouptu for mkosi

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:22:39 +0000 (21:22 +0100)] 
Update ci-ubuntu.yml

fix typo

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:20:44 +0000 (21:20 +0100)] 
Update ci-ubuntu.yml

- add new job unit-test

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 20:06:02 +0000 (21:06 +0100)] 
Update ci-ubuntu.yml

— don't fail all if something fails
— don't upload the `-directory` build

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 19:49:22 +0000 (20:49 +0100)] 
Update ci-ubuntu.yml

Fix the job name. Why is there no lexer before committing?

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 19:47:56 +0000 (20:47 +0100)] 
Update ci-ubuntu.yml

- setup dependencies
- upload created artifact
- name job proper

5 years agoUpdate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 19:36:41 +0000 (20:36 +0100)] 
Update ci-ubuntu.yml

add debootstrap as dependency

5 years agorun ci with explicit python3
Silvio Knizek [Tue, 10 Mar 2020 19:32:45 +0000 (20:32 +0100)] 
run ci with explicit python3

5 years agomkosi needs to run as root
Silvio Knizek [Tue, 10 Mar 2020 19:30:59 +0000 (20:30 +0100)] 
mkosi needs to run as root

5 years agoproper name variable
Silvio Knizek [Tue, 10 Mar 2020 19:27:45 +0000 (20:27 +0100)] 
proper name variable

5 years agoCreate ci-ubuntu.yml
Silvio Knizek [Tue, 10 Mar 2020 19:26:07 +0000 (20:26 +0100)] 
Create ci-ubuntu.yml

5 years agoFix mount squashfs on kernel 5.4 399/head
Shengjing Zhu [Wed, 22 Jan 2020 04:11:29 +0000 (12:11 +0800)] 
Fix mount squashfs on kernel 5.4

kernel 5.4 failed to mount squashfs

[764311.251432] squashfs: Unknown parameter 'discard'

5 years agoadd basic support for --repositories option for Arch Linux 398/head
Julien Nicoulaud [Sat, 18 Jan 2020 12:43:22 +0000 (13:43 +0100)] 
add basic support for --repositories option for Arch Linux

5 years agomkosi: fix wrong url to get Fedora's keys
Ronny Chevalier [Wed, 15 Jan 2020 13:11:47 +0000 (14:11 +0100)] 
mkosi: fix wrong url to get Fedora's keys

Fedora's website recently moved the keys from

    https://getfedora.org/static/[KEY]

to

    https://getfedora.org/static/keys/[KEY]

Unfortunately, they are not redirecting the URL, so it results in a 404.
It means that mkosi fails installing packages when the keys are not
stored locally, because it fails to get them from the website.

5 years agomkosi: use threads for .tar.xz creation
Alexander Ried [Wed, 8 Jan 2020 04:58:02 +0000 (05:58 +0100)] 
mkosi: use threads for .tar.xz creation

5 years agofix tests 394/head
Joerg Behrmann [Tue, 7 Jan 2020 13:56:25 +0000 (14:56 +0100)] 
fix tests

5 years agoremove unnecessary cast
Joerg Behrmann [Tue, 7 Jan 2020 13:56:13 +0000 (14:56 +0100)] 
remove unnecessary cast

5 years agomkosi: minor man page fixes
Lennart Poettering [Mon, 6 Jan 2020 18:37:35 +0000 (19:37 +0100)] 
mkosi: minor man page fixes

Addresses:

https://github.com/systemd/mkosi/pull/392#discussion_r361171963

5 years agomkosi: rename --with-network=strict → --with-network=never
Lennart Poettering [Mon, 6 Jan 2020 18:36:47 +0000 (19:36 +0100)] 
mkosi: rename --with-network=strict → --with-network=never

Addresses:

https://github.com/systemd/mkosi/pull/392#discussion_r361172733

5 years agomkosi: fix comment style
Lennart Poettering [Mon, 6 Jan 2020 18:35:53 +0000 (19:35 +0100)] 
mkosi: fix comment style

As suggested:

https://github.com/systemd/mkosi/pull/392#discussion_r360959467

5 years agomkosi: include repart/debug-generator in images if it exists
Lennart Poettering [Mon, 6 Jan 2020 18:30:07 +0000 (19:30 +0100)] 
mkosi: include repart/debug-generator in images if it exists

dracut doesn't include them by default, but they are so useful, hence
let's include them explicitly.

debug-generator has been part of systemd for a while, repart is still
pending merge:

https://github.com/systemd/systemd/pull/14368

5 years agomkosi: fixate pbkdf parameters to something low
Lennart Poettering [Mon, 6 Jan 2020 17:40:21 +0000 (18:40 +0100)] 
mkosi: fixate pbkdf parameters to something low

The tool is supposed to be useful to genenerate images for arbitrary
systems, thus we can't really have it that the PBKDF is tuned to some
beefy build system if the final system running things is much less
beefy.

hence, let's override the settings to a fixed (low) value.

5 years agomkosi: optionally create /var/tmp and /var partitions
Lennart Poettering [Mon, 6 Jan 2020 17:40:03 +0000 (18:40 +0100)] 
mkosi: optionally create /var/tmp and /var partitions

5 years agoMerge pull request #392 from poettering/minimal-fs
Lennart Poettering [Mon, 6 Jan 2020 17:39:04 +0000 (18:39 +0100)] 
Merge pull request #392 from poettering/minimal-fs

add support for building "minimized" file system images

5 years agomypy: add missing type information 392/head
Joerg Behrmann [Fri, 13 Dec 2019 15:30:57 +0000 (16:30 +0100)] 
mypy: add missing type information

5 years agodocs: document new features
Lennart Poettering [Fri, 13 Dec 2019 13:53:43 +0000 (14:53 +0100)] 
docs: document new features

5 years agoci: generate more different images
Lennart Poettering [Fri, 13 Dec 2019 09:35:25 +0000 (10:35 +0100)] 
ci: generate more different images

This generates images in all formats we support except as btrfs
subvolume.

It also add tests for the two flavours that support "minimized" images.

5 years agoci: use different ppa for python 3.6
Lennart Poettering [Fri, 13 Dec 2019 09:50:34 +0000 (10:50 +0100)] 
ci: use different ppa for python 3.6

Apparently the maintainer of the old PPA had enough. Thankfully there's
an alternative one.

5 years agomkosi: support old btrfs-tools on semaphore
Lennart Poettering [Fri, 13 Dec 2019 10:11:46 +0000 (11:11 +0100)] 
mkosi: support old btrfs-tools on semaphore

5 years agomkosi: introduce --with-network=strict
Lennart Poettering [Fri, 13 Dec 2019 08:26:26 +0000 (09:26 +0100)] 
mkosi: introduce --with-network=strict

This is like --with-network but also tells "dnf" not to use networking.
This adds a minimal level of reproducability: if the package cache in
mkosi.cache/ is populated once, every rebuild should produce very
similar images.

5 years agomkosi: incremental builds are not supported for squashfs or minimized file systems
Lennart Poettering [Thu, 12 Dec 2019 20:44:00 +0000 (21:44 +0100)] 
mkosi: incremental builds are not supported for squashfs or minimized file systems

This was never supported for squashfs, but failed badly. Let's generate
a nice error instead.

(The thing with these builds are that while we build these images we
don't mount the final file systems inside the image file. Instead we
mount a temporary directory in /var/tmp that is packed up only much
later. This makes caching harder, since it's not just one dir or file we
need to cache but the image *and* this directory. We can add support for
this eventually, but for now let's just friendly decline operation. It's
not too limiting, as in particular minimization is mostly an
optimization that is only useful on final builds, not on test builds so
much, while incremental mode is useful for test builds but not so much
for final builds.)

5 years agomkosi: optionally allow 'minimization' of generated file systems
Lennart Poettering [Thu, 12 Dec 2019 20:35:00 +0000 (21:35 +0100)] 
mkosi: optionally allow 'minimization' of generated file systems

This will use resize2fs or mkfs.btrfs support for creating "minimal"
images, i.e. file systems that have enough space for out payload but not
more.

5 years agomkosi: show whether we are in the first or second stage
Lennart Poettering [Thu, 12 Dec 2019 17:21:35 +0000 (18:21 +0100)] 
mkosi: show whether we are in the first or second stage

5 years agomkosi: force 256byte inodes on ext4
Lennart Poettering [Thu, 12 Dec 2019 17:18:46 +0000 (18:18 +0100)] 
mkosi: force 256byte inodes on ext4

Let's add some reproducability. The inode size has effects on the mtime
granularity, fscrypt support and more. mkfs.ext4's internal heuristic
for determining the inode size hence has some weird effects where mtime
problems suddenly arise when you build smaller images. Let's fix that,
and stick to a fixed size, most powerful inode size.

5 years agomkosi: add missing double whitespace between functions
Lennart Poettering [Thu, 12 Dec 2019 17:18:31 +0000 (18:18 +0100)] 
mkosi: add missing double whitespace between functions

5 years agoAdd location of OVMF.fd on recent Debian systems
Antonio Terceiro [Thu, 28 Nov 2019 15:14:26 +0000 (12:14 -0300)] 
Add location of OVMF.fd on recent Debian systems

5 years agoMerge pull request #386 from poettering/mkosi-default
Lucas De Marchi [Thu, 21 Nov 2019 17:05:06 +0000 (09:05 -0800)] 
Merge pull request #386 from poettering/mkosi-default

mkosi: having a "defaults" file is optional, hence conditionalize MKOSI_DEFAULT

5 years agomkosi: having a "defaults" file is optional, hence conditionalize MKOSI_DEFAULT 386/head
Lennart Poettering [Wed, 20 Nov 2019 09:10:21 +0000 (10:10 +0100)] 
mkosi: having a "defaults" file is optional, hence conditionalize MKOSI_DEFAULT

Follow-up for b067223c0de3ca814abac0ba6459d4916fd15746

5 years agoMerge pull request #382 from craftyguy/console_pipe
Lucas De Marchi [Tue, 12 Nov 2019 19:11:09 +0000 (11:11 -0800)] 
Merge pull request #382 from craftyguy/console_pipe

Use console=pipe in install_grub() when calling nspawn

5 years agoMerge pull request #381 from behrmann/arch_base_metapackage
Lucas De Marchi [Mon, 11 Nov 2019 22:43:22 +0000 (14:43 -0800)] 
Merge pull request #381 from behrmann/arch_base_metapackage

arch: use base package instead of base group

5 years agoFix literal asterisks in markdown documentation
JoelColledge [Fri, 8 Nov 2019 14:39:45 +0000 (15:39 +0100)] 
Fix literal asterisks in markdown documentation

5 years agoUse console=pipe in install_grub() when calling nspawn 382/head
Clayton Craft [Sat, 9 Nov 2019 19:50:12 +0000 (11:50 -0800)] 
Use console=pipe in install_grub() when calling nspawn

The mount bind to /dev on the host conflicts with this patch in systemd,
which doesn't expect /dev/console to exist:
https://github.com/systemd/systemd/commit/3acc84ebd9aebe8cf1771b42644ebbfbecdfaa37

The result is that nspawn dies because it is unable to create a symlink
at /dev/console. This adds a new parameter when calling nspawn to
prevent it from attempting to create/use /dev/console since the default
behavior is to create/use /dev/console and install_grub() doesn't seem to
require an interactive console in order to install grub.

Fixes #380

5 years agoarch: use base package instead of base group 381/head
Joerg Behrmann [Fri, 8 Nov 2019 09:41:02 +0000 (10:41 +0100)] 
arch: use base package instead of base group

Arch has changed its base package group to a meta package that pulls in several
other packages as dependencies. It is slimmer than the package group was before
and necessary to request support, so we can (and should) install it in full.

https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/

Original-Author: @keur
Closes: #377
5 years agoMerge pull request #378 from johannbg/FEDORA31
Lennart Poettering [Thu, 31 Oct 2019 15:25:30 +0000 (16:25 +0100)] 
Merge pull request #378 from johannbg/FEDORA31

Fedora31

5 years agoUpdate to Fedora31 378/head
Jóhann B. Guðmundsson [Thu, 31 Oct 2019 15:02:42 +0000 (15:02 +0000)] 
Update to Fedora31

5 years agoAdd Fedora31
Jóhann B. Guðmundsson [Thu, 31 Oct 2019 15:02:04 +0000 (15:02 +0000)] 
Add Fedora31

5 years agoOptionally include the .git directory with the files it contains
James Shubin [Wed, 18 Sep 2019 07:17:04 +0000 (03:17 -0400)] 
Optionally include the .git directory with the files it contains

When copying files in from git, using copy-git-cached ignores the files
in the .git/ directory. This introduces a copy-git-more option that also
pulls those files in. This is useful for builds that use `git describe`
or another git command for their version number or tests. With this
feature they can now query it.

5 years agoAdd flag to skip (second) final image build phase
James Shubin [Wed, 18 Sep 2019 07:09:31 +0000 (03:09 -0400)] 
Add flag to skip (second) final image build phase

This adds a new flag to cause the (second) final stage to be skipped.
This is useful for when you're more interested in the build artifacts
being built in the correct environment, and less interested in the final
image.

5 years agoRespect TMPDIR variable
Michal Sekletár [Thu, 17 Oct 2019 09:36:52 +0000 (11:36 +0200)] 
Respect TMPDIR variable

Fixes #332

5 years agoMerge pull request #355 from stejoo/centos_epel
Lennart Poettering [Wed, 16 Oct 2019 09:37:55 +0000 (11:37 +0200)] 
Merge pull request #355 from stejoo/centos_epel

mkosi: Fix centos_epel mirror configuration

5 years agomkosi: pass architecture to debbootstrap and map to Debian names
Joerg Behrmann [Mon, 7 Oct 2019 16:49:45 +0000 (18:49 +0200)] 
mkosi: pass architecture to debbootstrap and map to Debian names

5 years agoAdd support for Photon OS
Anish Swaminathan [Fri, 23 Aug 2019 17:10:53 +0000 (22:40 +0530)] 
Add support for Photon OS

Please see https://vmware.github.io/photon/

Known limitations:

1. The gpg key is not published on the web, so VMWARE-RPM-GPG-KEY should be present in the host
2. No uefi boot supported yet

```

initramfs 2.0-4.ph3 posttrans
Creating /boot/initrd.img-4.19.65-2.ph3

Complete!
‣ Unmounting API VFS...
‣ Unmounting API VFS complete.
‣ Installing Photon complete.
‣ Assigning hostname...
‣ Assigning hostname complete.
‣ Installing boot loader...
Installing for i386-pc platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.19.65-2.ph3
Found initrd image: /boot/initrd.img-4.19.65-2.ph3
done
‣ Installing boot loader complete.
‣ Unmounting Package Cache...
‣ Unmounting Package Cache complete.
‣ Cleaning dnf metadata...
‣ Resetting machine ID...
‣ Resetting machine ID complete.
‣ Removing random seed...
‣ Removing random seed complete.
‣ Unmounting image...
‣ Unmounting image complete.
‣ Mounting image...
‣ Mounting image complete.
‣ Unmounting image...
‣ Unmounting image complete.
‣ Detaching image file...
‣ Detaching image file complete.
‣ Linking image file...
‣ Changing ownership of output file /home/sus/photon-mkosi/mkosi.output/fedora.raw to user sus (acquired from sudo)...
‣ Successfully changed ownership of /home/sus/photon-mkosi/mkosi.output/fedora.raw.
‣ Successfully linked /home/sus/photon-mkosi/mkosi.output/fedora.raw.
‣ Resulting image size is 1.0G, consumes 503.0M.
‣ Processing default complete.

```

5 years agoFix type error on args variable (#368)
Jörg Behrmann [Fri, 11 Oct 2019 09:36:20 +0000 (11:36 +0200)] 
Fix type error on args variable (#368)

The CommandLineArguments are in a instead of args, so the hasattr check will
always fail. Skip using hasattr since a will have set directory from parse_args

5 years agoAdd env to build that specifies which "default" we're using
James Shubin [Fri, 20 Sep 2019 19:38:04 +0000 (15:38 -0400)] 
Add env to build that specifies which "default" we're using

It's not possible to determine which "mkosi.default" we're using, when
using a single "mkosi.build" script with `mkosi --default <file> build`
so this adds a variable that allows the build script to know which one
is being used.

5 years agomkosi: do RNG pass-through automatically for qemu
Lennart Poettering [Thu, 8 Aug 2019 09:04:38 +0000 (11:04 +0200)] 
mkosi: do RNG pass-through automatically for qemu

Let's not starve our instances of entropy needlessly, if it's easy to fix.