]> git.ipfire.org Git - thirdparty/systemd.git/commit
importd: add support for downloading sysext/confext/portable images too
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Feb 2024 08:43:01 +0000 (09:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Mar 2024 21:25:42 +0000 (22:25 +0100)
commit7af5785d77ced29a01fdf636274ac883aa9ff2d0
tree09f1c47777d3e27bf4454051428dbe9360d0869d
parent83d74112096d6af390b1c86ca877f537539e2a4a
importd: add support for downloading sysext/confext/portable images too

This adds "Ex" versions of all bus calls import implements, that make
two changes:

1. A "class" parameter is added that allows choosing between
   machine/sysext/confext/portable images to download. Depending on the
   chose class the target directory is selected differently (i.e. not
   just /var/lib/machines/, but alternatively /var/lib/portables/,
   /var/lib/extensions/, /var/lib/confexts/.

2. The boolean flags are replaced by a 64bit flags parameter.
15 files changed:
src/import/export.c
src/import/import-common.h
src/import/import-fs.c
src/import/import-raw.c
src/import/import-tar.c
src/import/import.c
src/import/importd.c
src/import/org.freedesktop.import1.conf
src/import/org.freedesktop.import1.policy
src/import/pull-common.c
src/import/pull-raw.c
src/import/pull-tar.c
src/import/pull.c
src/shared/discover-image.c
src/shared/discover-image.h