diff options
author | Adrian Vovk <adrianvovk@gmail.com> | 2024-01-10 23:25:00 +0100 |
---|---|---|
committer | Luca Boccassi <bluca@debian.org> | 2024-02-19 12:18:11 +0100 |
commit | 25c89b89771adf3251b2398eaddc3a49c22752e3 (patch) | |
tree | fb57ca5ab692d93707d7baf1e1172d8f1db07da7 /man/homectl.xml | |
parent | homework: Handle Update & Create w/ blob dir (diff) | |
download | systemd-25c89b89771adf3251b2398eaddc3a49c22752e3.tar.xz systemd-25c89b89771adf3251b2398eaddc3a49c22752e3.zip |
homectl: Add flags to edit blob directories
This makes it possible to edit blob directories using homectl. The
following syntax is available:
* `--blob-directory=/path/somewhere`: Replaces the entire blob directory
with the contents of /path/somewhere
* `--blob-directory=foobar=/path/somewhere`: Replaces just the file
foobar in the blob directory with the contents of /path/somewhere
* `--blob-directory=foobar=`: Deletes the file foobar from the blob
directory
* `--blob-directory=`: Resets all previous flags
* `--avatar=`, etc: Shortcuts for `--blob-directory=FILENAME=` for the
known files in the blob directory
Diffstat (limited to 'man/homectl.xml')
-rw-r--r-- | man/homectl.xml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/man/homectl.xml b/man/homectl.xml index 0e79f82e0f..c6663e09e0 100644 --- a/man/homectl.xml +++ b/man/homectl.xml @@ -507,6 +507,40 @@ <xi:include href="version-info.xml" xpointer="v247"/></listitem> </varlistentry> + <varlistentry> + <term><option>--blob=</option><replaceable>PATH</replaceable></term> + <term><option>-b</option> <replaceable>PATH</replaceable></term> + <term><option>--blob=</option><replaceable>FILENAME</replaceable>=<replaceable>PATH</replaceable></term> + <term><option>-b</option> <replaceable>FILENAME</replaceable>=<replaceable>PATH</replaceable></term> + + <listitem><para>Accepts either a directory path, or a file name followed by a file path. If just a + directory path is specified, then the user's entire blob directory is replaced the specified path. + Note that this replacement is performed before per-file manipulations are applied, which means these per-file + manipulations will be applied on top of the specified directory. If a filename and file path are specified, then + the single specified blob file will be overwritten with the specified path. If completely blank, the entire blob + directory is emptied out (which also resets all previous blob-related flags up to this point). If a filename is + specified but the corresponding path is blank, that single file will be deleted from the blob directory. All changes + are performed in temporary copies of the specified files in directories, which means that the originals specified on + the command line are not modified. See <ulink url="https://systemd.io/USER_RECORD_BLOB_DIRS">User Record Blob Directories</ulink> + for more information about blob directories.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + + <varlistentry> + <term><option>--avatar=</option><replaceable>PATH</replaceable></term> + <term><option>--login-background=</option><replaceable>PATH</replaceable></term> + + <listitem><para>Accept a file path. If set, the specifified file is used to overwrite the + corresponding file in the user's blob directory. If blank, the corresponding file is deleted + from the blob directory. Essentially, these options are shortcuts to + <option>--blob=</option><replaceable>FILENAME</replaceable>=<replaceable>PATH</replaceable> + for the known filenames defined in + <ulink url="https://systemd.io/USER_RECORD_BLOB_DIRS">User Record Blob Directories</ulink>.</para> + + <xi:include href="version-info.xml" xpointer="v256"/></listitem> + </varlistentry> + <varlistentry> <term><option>--locked=</option><replaceable>BOOLEAN</replaceable></term> |