5 Commits
Author SHA1 Message Date
Stoiko Ivanov e374e7a7e1 bsys: Drop i686 support
ArchLinux has stopped supporting i686 1.5 years ago [0].

[0] https://www.archlinux.org/news/the-end-of-i686-support/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov 01756eba20 refactor initial device creation for pacman
`aab` installs `archlinux-keyring`, which in turn invokes `dirmngr` during
installation. `dirmngr` needs access (at least) to '/dev/null' (see [0]), which
`aab` only created afterwards (before populating the keyring). This lead to
`dirmngr` spinning (and filling the filesystem with a regular file
'${rootfs}/dev/null' containing error messages.

This patch changes the behavior of aab: it now creates the devices before
installing 'archlinux-keyring' and removes them after the keyring is populated.

In order to save one further `mkdir` call for the 'dev' directory, this was
appended to the `mkpath` invocation in ve_init.

[0] https://bbs.archlinux.org/viewtopic.php?id=222002

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov 149d977340 remove extra mkdir $self->{rootfs} in initialize
The mkdir in intialize is not too helpful since, ve_init, which usually gets
called soon after (`aab init` is followed by `aab bootstrap` in the Makefile)
has a `rmtree $self->{rootfs}` and recreates it directly afterwards again.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov 60dbf75e0c exclude linux-firmware from installed packages
This reduces a fresh containers' size by ~220M (170M for the gziped template)
and additionally prevents one spurious errormessage from
`systemd-tmpfiles --create` occuring during bootup and other invocations
(e.g. `pacman -S $package`)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00
Stoiko Ivanov dfb4fbaa14 remove container config during finalize
Since the container config for the build is created with O_EXCL, multiple
consecutive invocations of `make default` fail, if the config file exists.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2019-04-26 08:17:03 +00:00