PORTABLECTL(1) portablectl PORTABLECTL(1) portablectl - portablectl [...] {} [...] portablectl . systemd-portabled.service(8). systemd(1). "" . RootDirectory= RootImage= ( ) . . . [1]. : o /usr/ /etc/ . o btrfs . o "" MBR GPT . ( .raw.) : list . ( ) . . . 239. attach [...] . . ("/") ( ). "./" . : 1. .service .socket .target .timer .path /etc/systemd/system.attached/ ( /run/systemd/system.attached/ -- --runtime ) . 2. .service RootDirectory= RootImage= ( systemd.unit(5) ) . 3. : "" ( ). . . 4. ( ) /etc/portables/ /run/portables/ . . .raw ("_") . foobar_47.11.raw foobar. "-" "." "@" . : foobar_47.11.raw foobar-quux-waldi.service foobar.service foobar@.service. : . --no-reload ( ). . --now / --enable ( --no-block) / . (: dm-verity) . systemd.image-policy(7). ".v/" systemd.v(7) . ".v/" systemd.v(7) . 239. detach [...] . attach . . ( ) . attach detach. --now / --enable ( ) / . () attach. 239. reattach [...] . . . : "_". . attach. --now / --enable / . attach. 248. inspect [...] . os-release(5) . ( attach ). --cat ( ) os-release . . attach . 239. is-attached . --quiet . : 1. +-------------------+----------------------------+ | | | +-------------------+----------------------------+ |detached | | | | | | | | | | . | +-------------------+----------------------------+ |attached | | | | | | | | | | | | | | | | | | | | | | | | | | | | . | +-------------------+----------------------------+ |attached-runtime | attached | | | | | | | | | | | | | | | | | | | | | attach | | | | | | | | | --runtime. | +-------------------+----------------------------+ |enabled | | | | | | | | | | | | | | | | | | | | | | . | +-------------------+----------------------------+ |enabled-runtime | enabled | | | | | | | | | | | | | | | | | | | | | attach | | | | | | | | | --runtime. | +-------------------+----------------------------+ |running | | | | | | | | | | | | | | | | | | | | | | | | | . | +-------------------+----------------------------+ |running-runtime | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . | +-------------------+----------------------------+ 239. read-only [_] ( ) . . . 239. remove ... . -- . 239. set-limit [IMAGE] BYTES ( ). . . . . K, M, G, T. "-" . btrfs. BindPaths= . 239. : -q --quiet . 239. -p PROFILE, --profile=PROFILE . "default". . 239. --copy= . : "copy" ( ) "symlink" ( ) "auto" "mixed" ( v256) . -- -- . 239. --runtime /run/systemd/system.attached/ /etc/systemd/system.attached/. . 239. --no-reload . . 239. --cat ( ) . os-release(5) . 239. --enable / /. 245. --now // / / . 245. --no-block --now. 245. --clean . 256. --extension=PATH PATH IMAGE /. systemd.exec(5) ExtensionImages= systemd-sysext(8) systemd-confext(8). extension-release os-release IMAGE. : os-release(5). btrfs . "Extension Images" Portable Services[1]. . ".v/" systemd.v(7) . ".v/" systemd.v(7) . 249. --force ( ) extension-release.NAME . 252. -H --host= . "@" . ssh ":" "/" . SSH . machinectl -H . IPv6 . -M --machine= . "@" . ".host" ( : "--user --machine=lennart@.host"). "@" (root). "@" ( ) ".host". --no-pager (pager). --no-legend . --no-ask-password . -h --help . --version . /var/lib/portables/ /etc/portables/ /run/portables/ /usr/local/lib/portables/ /usr/lib/portables/. /etc/portables/ /run/portables/ ( ) . /etc/systemd/system.attached/ /run/systemd/system.attached/. . "" () . /usr/lib/systemd/portable/profile/. /etc/systemd/portable/profile/. : 2. +----------------+-----------------------------+ | | | +----------------+-----------------------------+ |default | | | | | | | | | | | | | | | | | | | | | | --profile= ( | | | ). | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . | | | | | | | | | | | | | | | | | | | | | IPC | | | | | | D-Bus. | +----------------+-----------------------------+ |nonetwork | | | | | | | | | | | | | | | | | | | | | | | | | | | | . | +----------------+-----------------------------+ |strict | | | | | | | | | | . | | | | | | | | | | | | | | | IPC (D-Bus) | | | . | +----------------+-----------------------------+ |trusted | | | | | | | . | | | | | | | | | | | | | | | | | | . | +----------------+-----------------------------+ /usr/lib/systemd/portable/profile/default/service.conf . 0 . $SYSTEMD_LOG_LEVEL ( ). . ( ) emerg alert crit err warning notice info debug 0 7. syslog(3) . console syslog kmsg journal (: SYSTEMD_LOG_LEVEL=debug,console:info debug info). . $SYSTEMD_LOG_COLOR . tty . journalctl(1) . $SYSTEMD_LOG_TIME . . journalctl(1) . $SYSTEMD_LOG_LOCATION . . . . $SYSTEMD_LOG_TID . (TID). . . $SYSTEMD_LOG_TARGET . : console ( ) console-prefixed ( "" syslog(3) kmsg ( ) journal ( ) journal-or-kmsg ( kmsg ) auto ( ) null ( ). $SYSTEMD_LOG_RATELIMIT_KMSG kmsg . . "true". systemd kmsg. $SYSTEMD_PAGER $PAGER --no-pager. $SYSTEMD_PAGER $PAGER. $SYSTEMD_PAGER $PAGER less(1) more(1) . . "cat" --no-pager. : $SYSTEMD_PAGERSECURE $SYSTEMD_PAGER $PAGER ( "cat" "") . $SYSTEMD_LESS less ( "FRSXMK"). : K Ctrl+C. less Ctrl+C . $SYSTEMD_LESS "K" less Ctrl+C . X termcap . . . $LESS less systemd. less(1) . $SYSTEMD_LESSCHARSET less ( "utf-8" UTF-8). $LESSCHARSET less systemd. $SYSTEMD_PAGERSECURE (pager) less(1) "" . sudo(8) pkexec(1) . . " " ( ). " " --no-pager PAGER=cat . . (true) " " . " " LESSSECURE=1 . less(1) " ". false (pager). SYSTEMD_PAGERSECURE=0 . $SYSTEMD_PAGERSECURE systemd " " . " " (UID) geteuid(2) sd_pid_get_owner_uid(3) sudo(8) ($SUDO_UID [2]). SYSTEMD_PAGERSECURE=1 " " . . $SYSTEMD_PAGERSECURE . $SYSTEMD_PAGER $PAGER $SYSTEMD_PAGERSECURE . $SYSTEMD_COLORS (boolean) . ( ) systemd . $COLORTERM "truecolor" "24bit" 24 256 $NO_COLOR $TERM . true $NO_COLOR. false . "16" "256" "24bit" ANSI 16 256 24 . "auto-16" "auto-256" "auto-24bit" $TERM . $SYSTEMD_URLIFY . . systemd $TERM . systemd(1), systemd-sysext(8), org.freedesktop.portable1(5), systemd-portabled.service(8), importctl(1) 1. https://systemd.io/PORTABLE_SERVICES 2. $SUDO_UID . 3 . . : . systemd 260.2 PORTABLECTL(1)