mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-08 05:57:26 +03:00
remount-fs: also remount /usr according to fstab
This commit is contained in:
parent
5b6a2c5aab
commit
b4efdf9720
9
TODO
9
TODO
@ -25,6 +25,15 @@ Bugfixes:
|
|||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
|
* document that journal data is primarily ASCII, UTF-8 where necessary and binary only where nothing else makes sense.
|
||||||
|
|
||||||
|
* on reload/reexec: serialize NInstalledJobs properly
|
||||||
|
|
||||||
|
* Document:
|
||||||
|
- PID 1 D-Bus API
|
||||||
|
- Update Syslog Interface docs
|
||||||
|
- Journal C API manual pages
|
||||||
|
|
||||||
* logind: export a bool property that tells user whether a
|
* logind: export a bool property that tells user whether a
|
||||||
suspend/shutdown is currently scheduled, i.e. where are between
|
suspend/shutdown is currently scheduled, i.e. where are between
|
||||||
PrepareForSuspend(true) and PrepareForSuspend(false)
|
PrepareForSuspend(true) and PrepareForSuspend(false)
|
||||||
|
@ -58,20 +58,21 @@
|
|||||||
is an early-boot service that applies mount options
|
is an early-boot service that applies mount options
|
||||||
listed in
|
listed in
|
||||||
<citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
to the root file system and the kernel API virtual
|
to the root file system, the <filename>/usr</filename>
|
||||||
file systems. This is required so that the mount
|
file system and the kernel API virtual file
|
||||||
options of these file systems -- which are pre-mounted
|
systems. This is required so that the mount options of
|
||||||
by the kernel, the initial RAM disk or system manager
|
these file systems -- which are pre-mounted by the
|
||||||
code -- are updated to those listed in
|
kernel, the initial RAM disk, container environments
|
||||||
<filename>/etc/fstab</filename>. This service ignores
|
or system manager code -- are updated to those listed
|
||||||
normal file systems and only changes the root file
|
in <filename>/etc/fstab</filename>. This service
|
||||||
system (i.e. <filename>/</filename>) and the virtual
|
ignores normal file systems and only changes the root
|
||||||
kernel API file systems such as
|
file system (i.e. <filename>/</filename>),
|
||||||
<filename>/proc</filename>, <filename>/sys</filename>
|
<filename>/usr</filename> and the virtual kernel API
|
||||||
or <filename>/dev/</filename>. This service executes
|
file systems such as <filename>/proc</filename>,
|
||||||
no operation if <filename>/etc/fstab</filename> does
|
<filename>/sys</filename> or
|
||||||
not exist or lists no entries for the root file system
|
<filename>/dev/</filename>. This service executes no
|
||||||
or the kernel API VFS.</para>
|
operation if <filename>/etc/fstab</filename> does not
|
||||||
|
exist or lists no entries for the mentioned file systems.</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
<refsect1>
|
<refsect1>
|
||||||
|
@ -114,7 +114,9 @@
|
|||||||
" </method>\n" \
|
" </method>\n" \
|
||||||
" <method name=\"Subscribe\"/>\n" \
|
" <method name=\"Subscribe\"/>\n" \
|
||||||
" <method name=\"Unsubscribe\"/>\n" \
|
" <method name=\"Unsubscribe\"/>\n" \
|
||||||
" <method name=\"Dump\"/>\n" \
|
" <method name=\"Dump\">\n" \
|
||||||
|
" <arg name=\"dump\" type=\"s\" direction=\"out\"/>\n" \
|
||||||
|
" </method>\n" \
|
||||||
" <method name=\"CreateSnapshot\">\n" \
|
" <method name=\"CreateSnapshot\">\n" \
|
||||||
" <arg name=\"name\" type=\"s\" direction=\"in\"/>\n" \
|
" <arg name=\"name\" type=\"s\" direction=\"in\"/>\n" \
|
||||||
" <arg name=\"cleanup\" type=\"b\" direction=\"in\"/>\n" \
|
" <arg name=\"cleanup\" type=\"b\" direction=\"in\"/>\n" \
|
||||||
|
@ -79,9 +79,10 @@ int main(int argc, char *argv[]) {
|
|||||||
int k;
|
int k;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
/* Remount the root fs and all API VFS */
|
/* Remount the root fs, /usr and all API VFS */
|
||||||
if (!mount_point_is_api(me->mnt_dir) &&
|
if (!mount_point_is_api(me->mnt_dir) &&
|
||||||
!path_equal(me->mnt_dir, "/"))
|
!path_equal(me->mnt_dir, "/") &&
|
||||||
|
!path_equal(me->mnt_dir, "/usr"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
log_debug("Remounting %s", me->mnt_dir);
|
log_debug("Remounting %s", me->mnt_dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user