]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd.exec: mount_switch_root uses pivot_root rather than chroot
authorMike Yuan <me@yhndnzj.com>
Fri, 26 Apr 2024 09:48:53 +0000 (17:48 +0800)
committerMike Yuan <me@yhndnzj.com>
Sat, 27 Apr 2024 06:28:54 +0000 (14:28 +0800)
man/systemd.exec.xml

index 38bf018ae462a613ce4dc28e70f43a761dd5eab4..d9ec44983fcb4151e17ce17e8e9914d0961c9cbd 100644 (file)
 
         <listitem><para>Takes a directory path relative to the host's root directory (i.e. the root of the system
         running the service manager). Sets the root directory for executed processes, with the <citerefentry
-        project='man-pages'><refentrytitle>chroot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system
-        call. If this is used, it must be ensured that the process binary and all its auxiliary files are available in
-        the <function>chroot()</function> jail. Note that setting this parameter might result in additional
+        project='man-pages'><refentrytitle>pivot_root</refentrytitle><manvolnum>2</manvolnum></citerefentry>
+        or <citerefentry project='man-pages'><refentrytitle>chroot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
+        system call. If this is used, it must be ensured that the process binary and all its auxiliary files
+        are available in the new root. Note that setting this parameter might result in additional
         dependencies to be added to the unit (see above).</para>
 
         <para>The <varname>MountAPIVFS=</varname> and <varname>PrivateUsers=</varname> settings are particularly useful