]>
git.ipfire.org Git - thirdparty/mkosi.git/log
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.
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
Daan De Meyer [Thu, 14 May 2020 18:28:35 +0000 (20:28 +0200)]
Gracefully handle build script failures
Daan De Meyer [Thu, 14 May 2020 18:27:19 +0000 (20:27 +0200)]
Print errors in bold + bright red
Daan De Meyer [Thu, 14 May 2020 18:26:50 +0000 (20:26 +0200)]
Add editorconfig file
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
Lennart Poettering [Mon, 11 May 2020 22:01:41 +0000 (00:01 +0200)]
Merge pull request #415 from dyejon/armv7l
build ubuntu on armv7l
thon [Sat, 2 May 2020 21:14:09 +0000 (21:14 +0000)]
add repository print
thon [Fri, 1 May 2020 23:57:51 +0000 (23:57 +0000)]
odroid / armv7l / armhf fix
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
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
Lucas De Marchi [Thu, 19 Mar 2020 05:40:22 +0000 (22:40 -0700)]
ci: trigger on pull requests
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.
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
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
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
fernandolobato [Thu, 20 Feb 2020 23:39:17 +0000 (15:39 -0800)]
Changes to support unified kernel+initrd in Ubuntu
Silvio Knizek [Wed, 11 Mar 2020 15:23:36 +0000 (16:23 +0100)]
ci-clear: symlink swupd-extract directly into $PATH
Silvio Knizek [Wed, 11 Mar 2020 15:19:58 +0000 (16:19 +0100)]
ci-clear: add go bin path to find swupd-extract
Silvio Knizek [Wed, 11 Mar 2020 15:16:15 +0000 (16:16 +0100)]
ci: enable debug for CnetOS, enable ClearOS
Silvio Knizek [Tue, 10 Mar 2020 23:31:30 +0000 (00:31 +0100)]
ci-arch: add asciidoc dep for arch-install-scripts
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
Silvio Knizek [Tue, 10 Mar 2020 23:03:35 +0000 (00:03 +0100)]
ci-arch: add dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 22:59:57 +0000 (23:59 +0100)]
ci-arch: use the newer python and enable debug
Silvio Knizek [Tue, 10 Mar 2020 22:43:41 +0000 (23:43 +0100)]
ci-arch: populate arch keyring before using
Silvio Knizek [Tue, 10 Mar 2020 22:36:25 +0000 (23:36 +0100)]
ci-arch: include compile fix for pacman
Silvio Knizek [Tue, 10 Mar 2020 22:16:58 +0000 (23:16 +0100)]
ci-arch: add gpgme dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 22:04:45 +0000 (23:04 +0100)]
ci-arch: add the keyring from arch linux as well
Silvio Knizek [Tue, 10 Mar 2020 21:57:05 +0000 (22:57 +0100)]
ci-arch: add libarchive dependency for pacman
Silvio Knizek [Tue, 10 Mar 2020 21:54:31 +0000 (22:54 +0100)]
ci-arch: add pacman from source
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
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
Silvio Knizek [Tue, 10 Mar 2020 21:19:50 +0000 (22:19 +0100)]
make debian based CIs actually build deb based
Silvio Knizek [Tue, 10 Mar 2020 21:15:56 +0000 (22:15 +0100)]
rename variable proper
Silvio Knizek [Tue, 10 Mar 2020 21:13:13 +0000 (22:13 +0100)]
split up github ci definition
Silvio Knizek [Tue, 10 Mar 2020 20:49:35 +0000 (21:49 +0100)]
Update ci-ubuntu.yml
— new package managers
— disable boot support
Silvio Knizek [Tue, 10 Mar 2020 20:37:00 +0000 (21:37 +0100)]
Update ci-ubuntu.yml
test everything
Silvio Knizek [Tue, 10 Mar 2020 20:26:32 +0000 (21:26 +0100)]
Update ci-ubuntu.yml
enable debug ouptu for mkosi
Silvio Knizek [Tue, 10 Mar 2020 20:22:39 +0000 (21:22 +0100)]
Update ci-ubuntu.yml
fix typo
Silvio Knizek [Tue, 10 Mar 2020 20:20:44 +0000 (21:20 +0100)]
Update ci-ubuntu.yml
- add new job unit-test
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
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?
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
Silvio Knizek [Tue, 10 Mar 2020 19:36:41 +0000 (20:36 +0100)]
Update ci-ubuntu.yml
add debootstrap as dependency
Silvio Knizek [Tue, 10 Mar 2020 19:32:45 +0000 (20:32 +0100)]
run ci with explicit python3
Silvio Knizek [Tue, 10 Mar 2020 19:30:59 +0000 (20:30 +0100)]
mkosi needs to run as root
Silvio Knizek [Tue, 10 Mar 2020 19:27:45 +0000 (20:27 +0100)]
proper name variable
Silvio Knizek [Tue, 10 Mar 2020 19:26:07 +0000 (20:26 +0100)]
Create ci-ubuntu.yml
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'
Julien Nicoulaud [Sat, 18 Jan 2020 12:43:22 +0000 (13:43 +0100)]
add basic support for --repositories option for Arch Linux
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.
Alexander Ried [Wed, 8 Jan 2020 04:58:02 +0000 (05:58 +0100)]
mkosi: use threads for .tar.xz creation
Joerg Behrmann [Tue, 7 Jan 2020 13:56:25 +0000 (14:56 +0100)]
fix tests
Joerg Behrmann [Tue, 7 Jan 2020 13:56:13 +0000 (14:56 +0100)]
remove unnecessary cast
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
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
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
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
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.
Lennart Poettering [Mon, 6 Jan 2020 17:40:03 +0000 (18:40 +0100)]
mkosi: optionally create /var/tmp and /var partitions
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
Joerg Behrmann [Fri, 13 Dec 2019 15:30:57 +0000 (16:30 +0100)]
mypy: add missing type information
Lennart Poettering [Fri, 13 Dec 2019 13:53:43 +0000 (14:53 +0100)]
docs: document new features
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.
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.
Lennart Poettering [Fri, 13 Dec 2019 10:11:46 +0000 (11:11 +0100)]
mkosi: support old btrfs-tools on semaphore
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.
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.)
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.
Lennart Poettering [Thu, 12 Dec 2019 17:21:35 +0000 (18:21 +0100)]
mkosi: show whether we are in the first or second stage
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.
Lennart Poettering [Thu, 12 Dec 2019 17:18:31 +0000 (18:18 +0100)]
mkosi: add missing double whitespace between functions
Antonio Terceiro [Thu, 28 Nov 2019 15:14:26 +0000 (12:14 -0300)]
Add location of OVMF.fd on recent Debian systems
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
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
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
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
JoelColledge [Fri, 8 Nov 2019 14:39:45 +0000 (15:39 +0100)]
Fix literal asterisks in markdown documentation
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
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
Lennart Poettering [Thu, 31 Oct 2019 15:25:30 +0000 (16:25 +0100)]
Merge pull request #378 from johannbg/FEDORA31
Fedora31
Jóhann B. Guðmundsson [Thu, 31 Oct 2019 15:02:42 +0000 (15:02 +0000)]
Update to Fedora31
Jóhann B. Guðmundsson [Thu, 31 Oct 2019 15:02:04 +0000 (15:02 +0000)]
Add Fedora31
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.
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.
Michal Sekletár [Thu, 17 Oct 2019 09:36:52 +0000 (11:36 +0200)]
Respect TMPDIR variable
Fixes #332
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
Joerg Behrmann [Mon, 7 Oct 2019 16:49:45 +0000 (18:49 +0200)]
mkosi: pass architecture to debbootstrap and map to Debian names
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.
```
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
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.
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.
Joerg Behrmann [Tue, 10 Sep 2019 09:19:49 +0000 (11:19 +0200)]
Add the ability to set pre-hashed root passwords
James Shubin [Wed, 18 Sep 2019 07:11:37 +0000 (03:11 -0400)]
Fix typo in source comments
Stefan Joosten [Thu, 22 Aug 2019 11:56:10 +0000 (13:56 +0200)]
Fix epel_url to use baseurl instead of mirrorlist
Stefan Joosten [Thu, 22 Aug 2019 10:04:48 +0000 (12:04 +0200)]
Fix centosplus_url repository selection
Lennart Poettering [Thu, 15 Aug 2019 10:31:09 +0000 (12:31 +0200)]
Merge pull request #354 from lnussel/master
openSUSE fixes
Ludwig Nussel [Thu, 15 Aug 2019 08:58:14 +0000 (10:58 +0200)]
call zypper with mount_api_vfs context
Ludwig Nussel [Thu, 15 Aug 2019 07:34:11 +0000 (09:34 +0200)]
rename opensuse default repos
Use repo names consistent with openSUSE
Ludwig Nussel [Thu, 15 Aug 2019 07:25:07 +0000 (09:25 +0200)]
read os-release's ID_LIKE to find openSUSE
Nowadays ID is opensuse-leap, opensuse-tumbleweed or various other
values for different flavors