]> git.proxmox.com Git - aab.git/commit - PVE/AAB.pm
refactor initial device creation for pacman
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 25 Apr 2019 17:53:57 +0000 (19:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 Apr 2019 08:17:03 +0000 (08:17 +0000)
commit01756eba20b99024e5cb20335322913d8b8a543c
tree67e6ecc3ca09d16a55946b8424756abc6ea28e9f
parent149d9773405f4c87efa6a92f37b897f1769e09ef
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>
PVE/AAB.pm