|
Zbigniew Jędrzejewski-Szmek |
e106c4 |
From 78846d19d3569cf637d2e37c10e75395ebcf9d06 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
Date: Wed, 16 Oct 2013 02:49:54 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
Subject: [PATCH] rules: expose loop block devices to systemd
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
Since the kernel no longer exposes a large number of "dead" loop devices
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
it is OK to expose them now in systemd, so let's do that. This has the
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
benefit that mount dependencies on loop devices start to work.
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
rules/99-systemd.rules.in | 6 +++---
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
diff --git a/rules/99-systemd.rules.in b/rules/99-systemd.rules.in
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
index bbb7d0c..3c99475 100644
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
--- a/rules/99-systemd.rules.in
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
+++ b/rules/99-systemd.rules.in
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
@@ -11,12 +11,12 @@ SUBSYSTEM=="tty", KERNEL=="tty[a-zA-Z]*|hvc*|xvc*|hvsi*", TAG+="systemd"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
KERNEL=="vport*", TAG+="systemd"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
-SUBSYSTEM=="block", KERNEL!="ram*|loop*", TAG+="systemd"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
-SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
+SUBSYSTEM=="block", KERNEL!="ram*", TAG+="systemd"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
+SUBSYSTEM=="block", KERNEL!="ram*", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", ENV{SYSTEMD_READY}="0"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
# Ignore encrypted devices with no identified superblock on it, since
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
# we are probably still calling mke2fs or mkswap on it.
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
-SUBSYSTEM=="block", KERNEL!="ram*|loop*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
+SUBSYSTEM=="block", KERNEL!="ram*", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0"
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
# Ignore raid devices that are not yet assembled and started
|
|
Zbigniew Jędrzejewski-Szmek |
794d16 |
SUBSYSTEM=="block", ENV{DEVTYPE}=="disk", KERNEL=="md*", TEST!="md/array_state", ENV{SYSTEMD_READY}="0"
|