]>
git.ipfire.org Git - thirdparty/mkosi.git/log
Daan De Meyer [Thu, 2 Jul 2020 11:08:04 +0000 (13:08 +0200)]
CentOS: Use mirrorlist.fedoraproject.org for EPEL mirrors
Liam McBirnie [Fri, 15 May 2020 11:19:21 +0000 (13:19 +0200)]
Add CentOS 8 repositories.
Liam McBirnie [Sat, 11 Apr 2020 19:27:48 +0000 (21:27 +0200)]
Fix packages and build packages not being installed on Centos and Mageia
Lucas De Marchi [Wed, 1 Jul 2020 15:20:51 +0000 (08:20 -0700)]
Merge pull request #439 from DaanDeMeyer/root-over-workspace
Pass root around instead of workspace
Daan De Meyer [Tue, 30 Jun 2020 09:44:36 +0000 (11:44 +0200)]
Pass root around instead of workspace
Most of the functions operate on the image root instead of the
workspace so it makes sense to pass the root directory instead of
the workspace. Access to the workspace directory is done via the
workspace function that simply returns the parent directory of the
root directory.
This commit only refactors code and does not change behavior.
Daan De Meyer [Wed, 1 Jul 2020 07:23:59 +0000 (09:23 +0200)]
Arch: Update CI dependencies
- libarchive 3.4.3
- archlinux-keyring
20200622
Ivan Shapovalov [Tue, 23 Jun 2020 16:11:27 +0000 (19:11 +0300)]
mkosi: fix `-t submodule` output
By the time we get to creating the root submodule, the directory already exists
because we self-bind-mount it in mount_image(), and it is too late to convert it
because of the same.
Thus, move the root subvolume creation into its own step just prior to
mount_image().
Fixes #396.
Daan De Meyer [Mon, 29 Jun 2020 18:27:45 +0000 (20:27 +0200)]
Merge pull request #422 from Werkov/opensuse-fixes
Various openSUSE fixes
zigarrre [Thu, 18 Jun 2020 17:56:25 +0000 (19:56 +0200)]
Fix: No empty string argument if no options provided
Empty string as last argument caused mount to fail.
Michal Koutný [Fri, 15 May 2020 17:27:06 +0000 (19:27 +0200)]
Add OVMF path to openSUSE qemu-ovmf
The OVMF files on openSUSE are in yet another unlisted path.
Michal Koutný [Fri, 15 May 2020 17:22:00 +0000 (19:22 +0200)]
Install openSUSE packages in one go
Minimal pattern may install packages that are conflicting with packages
installed in the second stage and that requires manual resolution (e.g.
replace busybox-coreutils with coreutils).
As there is no need to do installation in two steps, install all
packages in one zypper call, making it resolve potential conflicts
itself.
Michal Koutný [Wed, 13 May 2020 14:15:41 +0000 (16:15 +0200)]
Always fill machine_id in built image
The build script may run commands relying on machine_id and since we
don't run build script with full-fledged PID 1, uuid passed from
systemd-nspawn won't be effective. Hence for the build stage use
machine_id even for non-bootable images (as per note in build_stuff,
it's not the first such use).
Michal Koutný [Wed, 13 May 2020 11:41:14 +0000 (13:41 +0200)]
openSUSE: Download RPMs in advance
In order to have full file-lists for zypper to check for conflicts.
Michal Koutný [Wed, 6 May 2020 13:19:12 +0000 (15:19 +0200)]
Fix --skip-final-phase builds referencing None
If we skip the second stage, we shoud work with results of the first
stage, not nothing, otherwise we fail:
> ‣ Skipping (second) final image build phase.
> Traceback (most recent call last):
> File "/projects/mkosi/mkosi", line 4895, in <module>
> main()
> File "/projects/mkosi/mkosi", line 4891, in main
> run_verb(a)
> File "/projects/mkosi/mkosi", line 4866, in run_verb
> build_stuff(args)
> File "/projects/mkosi/mkosi", line 4691, in build_stuff
> raw = qcow2_output(args, raw)
> File "/projects/mkosi/mkosi", line 2981, in qcow2_output
> assert raw is not None
> AssertionError
potens1 [Tue, 16 Jun 2020 20:07:59 +0000 (22:07 +0200)]
Factor securetty disabling and apply to debian (#429)
Refactor securetty disabling and apply to debian
Daan De Meyer [Sun, 31 May 2020 11:59:51 +0000 (13:59 +0200)]
Arch: Re-enable mkinitcpio install hook after running pacman
This makes sure that later kernel updates via pacman still work as
expected.
Lucas De Marchi [Sun, 31 May 2020 03:10:03 +0000 (20:10 -0700)]
Merge pull request #424 from DaanDeMeyer/arch-securetty
Arch: Fix root login when using systemd-nspawn
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 14:54:15 +0000 (16:54 +0200)]
Merge pull request #421 from DaanDeMeyer/improve-perf
Arch: Improve perf + fix pacman warnings/errors
Zbigniew Jędrzejewski-Szmek [Sat, 30 May 2020 09:52:22 +0000 (11:52 +0200)]
Merge pull request #427 from potens1/master
Clean the tab idents
Nicolas Di Pietro [Fri, 29 May 2020 16:37:40 +0000 (18:37 +0200)]
Remove redundents indents and align some params.
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.
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
Daan De Meyer [Wed, 27 May 2020 17:59:02 +0000 (19:59 +0200)]
Arch: Move run_pacman and run_pacstrap definitions to their call sites
Daan De Meyer [Wed, 27 May 2020 17:56:05 +0000 (19:56 +0200)]
Arch: Remove pacstrap retired -d flag
Daan De Meyer [Wed, 27 May 2020 17:53:59 +0000 (19:53 +0200)]
Arch: Remove unnecessary synchronization.
pacstrap already synchronizes for us.
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.
Daan De Meyer [Fri, 22 May 2020 18:43:59 +0000 (20:43 +0200)]
Arch: Fix root login when using systemd-nspawn
Daan De Meyer [Tue, 19 May 2020 17:26:15 +0000 (19:26 +0200)]
Arch: Avoid synchronizing repositories in second pacman invocation
pacstrap synchronizes package repositories by default which we've
already done in the first call to pacstrap. By calling pacman
directly, we avoid the unnecessary second sync.
Daan De Meyer [Sun, 17 May 2020 19:09:41 +0000 (21:09 +0200)]
Don't create /boot when creating the build script image
Daan De Meyer [Sun, 17 May 2020 18:47:18 +0000 (20:47 +0200)]
Arch: fix pacman warnings/errors due to incorrect directory permissions.
Daan De Meyer [Sun, 17 May 2020 17:09:03 +0000 (19:09 +0200)]
Arch: Avoid installing kernel image twice.
Daan De Meyer [Sun, 17 May 2020 16:03:38 +0000 (18:03 +0200)]
Arch: Disable fallback kernel images
Daan De Meyer [Sun, 17 May 2020 15:49:17 +0000 (17:49 +0200)]
Don't install a boot loader when building the build script image
Daan De Meyer [Sun, 17 May 2020 15:49:08 +0000 (17:49 +0200)]
Arch: Do less when building the build script image
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
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
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
fernandolobato [Thu, 2 Apr 2020 00:41:32 +0000 (17:41 -0700)]
ony add this package for bootable images
fernandolobato [Wed, 1 Apr 2020 23:29:03 +0000 (16:29 -0700)]
Add usrmerge for ubuntu previous to 19.04
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