В Thu, 15 Jan 2015 19:24:25 -0500 Stéphane Graber <[email protected]> пишет:
> @@ -871,6 +871,14 @@ static void mount_enter_unmounting(Mount *m) {
> m->control_command_id = MOUNT_EXEC_UNMOUNT;
> m->control_command = m->exec_command + MOUNT_EXEC_UNMOUNT;
>
> + /* Ignore any mounts under /dev, /proc or /sys */
> + if (path_startswith(m->where, "/dev/") ||
> + path_startswith(m->where, "/proc/") ||
> + path_startswith(m->where, "/sys/")) {
> + mount_set_state(m, MOUNT_DEAD);
> + return;
> + }
> +
This does not look right either. I'd rather expect to a) set
DefaultDependencies=no for these special mounts so that they are left
at shutdown and b) ignore them in the final killing spree if needed
(unless happens already).
If I as user do "systemctl stop /dev/pts" I expect it to
unmount /dev/pts not fake "dead" state.
pgpDIs973iemt.pgp
Description: OpenPGP digital signature
_______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
