nspawn: if an ESP is part of the disk image to operate on, mount it to /efi or /boot
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Jul 2016 16:36:04 +0000 (18:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Jul 2016 09:10:35 +0000 (11:10 +0200)
commita6bc7db980532d294c29f1cd5654f03453519c92
tree3236bfaba4db96013460b84b14f4da8d81dabff9
parentb52a109ad38cd37b660ccd5394ff5c171a5e5355
nspawn: if an ESP is part of the disk image to operate on, mount it to /efi or /boot

Matching the behaviour of gpt-auto-generator, if we find an ESP while
dissecting a container image, mount it to /efi or /boot if those dirs exist and
are empty.

This should enable us to run "bootctl" inside a container and do the right
thing.
src/nspawn/nspawn.c