mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
man: add example --forward-journal= example for vmspawn
This commit is contained in:
parent
0f37ff38a8
commit
b8db8e557b
@ -525,6 +525,22 @@ $ sha256sum -c Fedora-Cloud-&fedora_latest_version;-&fedora_cloud_release;-x86_6
|
||||
# systemd-vmspawn -M fedora-&fedora_latest_version;-cloud
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
<title>Build and run systemd's system image and forward the VM's journal to a local file</title>
|
||||
|
||||
<programlisting>
|
||||
$ mkosi build
|
||||
$ systemd-vmspawn \
|
||||
-D mkosi.output/system \
|
||||
--private-users $(grep $(whoami) /etc/subuid | cut -d: -f2) \
|
||||
--linux mkosi.output/system.efi \
|
||||
--forward-journal=vm.journal \
|
||||
enforcing=0
|
||||
</programlisting>
|
||||
|
||||
<para>Note: this example also uses a kernel command line argument to ensure SELinux isn't started in enforcing mode.</para>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1>
|
||||
|
Loading…
Reference in New Issue
Block a user