mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
113b3fc1a8
When manipulating container and VM images we need efficient and atomic directory snapshots and file copies, as well as disk quota. btrfs provides this, legacy file systems do not. Hence, implicitly create a loopback file system in /var/lib/machines.raw and mount it to /var/lib/machines, if that directory is not on btrfs anyway. This is done implicitly and transparently the first time the user invokes "machinectl import-xyz". This allows us to take benefit of btrfs features for container management without actually having the rest of the system use btrfs. The loopback is sized 500M initially. Patches to grow it dynamically are to follow.
18 lines
628 B
SYSTEMD
18 lines
628 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Virtual Machine and Container Download Service
|
|
Documentation=man:systemd-importd.service(8)
|
|
|
|
[Service]
|
|
ExecStart=@rootlibexecdir@/systemd-importd
|
|
BusName=org.freedesktop.import1
|
|
CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP
|
|
NoNewPrivileges=yes
|
|
WatchdogSec=1min
|