|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
From 66065b8d9cd1bb7e488fd84d4f19d34487bf29a7 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
From: =?UTF-8?q?J=C3=B3hann=20B=2E=20Gu=C3=B0mundsson?= <johannbg@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
Date: Sun, 2 Feb 2014 13:29:19 +0000
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
Subject: [PATCH] udev: add zram to the list of devices inappropriate for
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
symlinks
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
udev seems to have a race condition with swapon to see which can open
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
/dev/zram0 first, causing swapon to fail. Seems to be most noticeable
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
on arm devices one out of every 7 times or something.
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
rules/60-persistent-storage.rules | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
index a4d009a..154ffd9 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
--- a/rules/60-persistent-storage.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
+++ b/rules/60-persistent-storage.rules
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
@@ -14,7 +14,7 @@ ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
SUBSYSTEM!="block", GOTO="persistent_storage_end"
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
# skip rules for inappropriate block devices
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
-KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*", GOTO="persistent_storage_end"
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
+KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|zram*", GOTO="persistent_storage_end"
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
# ignore partitions that span the entire disk
|
|
Zbigniew Jędrzejewski-Szmek |
ca73a2 |
TEST=="whole_disk", GOTO="persistent_storage_end"
|