Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd: update persistent-storage-rule-mmc-partname.patch to apply f…
…or v225 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
- Loading branch information
1 parent
ec59e16
commit d0f5741
Showing
1 changed file
with
29 additions
and
19 deletions.
There are no files selected for viewing
48 changes: 29 additions & 19 deletions
48
meta-luneos/recipes-core/systemd/systemd/persistent-storage-rule-mmc-partname.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,33 @@ | ||
Description: Create disk/by-partlabel links for mmcblk partitions | ||
Android based kernel exports the uevent property PARTNAME, which can be | ||
used to find out at run time the named partitions (e.g. boot) for the | ||
device. | ||
. | ||
This is specially useful for the Touch based images and flash-kernel, | ||
to automatically update the kernel by writing at the correct partition | ||
(independently of the hardware revision). | ||
Forwarded: no | ||
Author: Ricardo Salveti <ricardo.salveti@canonical.com> | ||
From db568345911e635b7e8beeaa078ad242050386ee Mon Sep 17 00:00:00 2001 | ||
From: Ricardo Salveti <ricardo.salveti@canonical.com> | ||
Date: Wed, 16 Sep 2015 16:33:03 +0200 | ||
Subject: [PATCH] Create disk/by-partlabel links for mmcblk partitions | ||
|
||
Index: systemd/rules/60-persistent-storage.rules | ||
=================================================================== | ||
--- systemd.orig/rules/60-persistent-storage.rules 2013-01-30 04:32:08.399835311 +0100 | ||
+++ systemd/rules/60-persistent-storage.rules 2013-05-22 11:07:07.486872081 +0200 | ||
@@ -48,6 +48,7 @@ | ||
|
||
KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}" | ||
Android based kernel exports the uevent property PARTNAME, which can be | ||
used to find out at run time the named partitions (e.g. boot) for the | ||
device. | ||
|
||
This is specially useful for the Touch based images and flash-kernel, | ||
to automatically update the kernel by writing at the correct partition | ||
(independently of the hardware revision). | ||
|
||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
--- | ||
rules/60-persistent-storage.rules | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules | ||
index 0b14bb4..33f78ac 100644 | ||
--- a/rules/60-persistent-storage.rules | ||
+++ b/rules/60-persistent-storage.rules | ||
@@ -44,6 +44,7 @@ KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$att | ||
KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ATTRS{name}=="?*", ATTRS{serial}=="?*", \ | ||
ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}" | ||
KERNEL=="mmcblk[0-9]p[0-9]", ENV{ID_NAME}=="?*", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/mmc-$env{ID_NAME}_$env{ID_SERIAL}-part%n" | ||
+KERNEL=="mmcblk[0-9]p[0-9]", ENV{PARTNAME}=="?*", SYMLINK+="disk/by-partlabel/$env{PARTNAME}" | ||
KERNEL=="mspblk[0-9]", SUBSYSTEMS=="memstick", ATTRS{name}=="?*", ATTRS{serial}=="?*", ENV{ID_NAME}="$attr{name}", ENV{ID_SERIAL}="$attr{serial}", SYMLINK+="disk/by-id/memstick-$env{ID_NAME}_$env{ID_SERIAL}" | ||
KERNEL=="mspblk[0-9]p[0-9]", ENV{ID_NAME}=="?*", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/memstick-$env{ID_NAME}_$env{ID_SERIAL}-part%n" | ||
|
||
# Memstick | ||
KERNEL=="msblk[0-9]|mspblk[0-9]", SUBSYSTEMS=="memstick", ATTRS{name}=="?*", ATTRS{serial}=="?*", \ | ||
-- | ||
2.5.1 | ||
|