diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-19 01:59:52 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-19 02:08:14 +0100 |
commit | 72648326ea6d3e68cdb0b5890df737047d031a41 (patch) | |
tree | 951f4f2d744a03f24f67b03b1b7d59e3c2d0eb5a /src/shared/util.h | |
parent | util: add generalization of verb parsing for command line tools (diff) | |
download | systemd-72648326ea6d3e68cdb0b5890df737047d031a41.tar.xz systemd-72648326ea6d3e68cdb0b5890df737047d031a41.zip |
import: add new minimal tool "systemd-import" for pulling down foreign containers and install them locally
This adds a simply but powerful tool for downloading container images
from the most popular container solution used today. Use it like
this:
# systemd-import pull-dck mattdm/fedora
# systemd-nspawn -M fedora
This will donwload the layers for "mattdm/fedora", and make them
available locally as /var/lib/container/fedora.
The tool is pretty complete, as long as it's only about pulling down
images, or updating them. Pushing or searching is not supported yet.
Diffstat (limited to '')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index a8ccf20bb8..96b8c1bcc0 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -1040,3 +1040,5 @@ int sethostname_idempotent(const char *s); for ((e) = (struct inotify_event*) (buffer); \ (uint8_t*) (e) < (uint8_t*) (buffer) + (sz); \ (e) = (struct inotify_event*) ((uint8_t*) (e) + sizeof(struct inotify_event) + (e)->len)) + +#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW) |