Add 61-system-plugin-n4.rules for n4 device 46/204346/1
authorINSUN PYO <insun.pyo@samsung.com>
Tue, 23 Apr 2019 05:24:21 +0000 (14:24 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 23 Apr 2019 07:42:53 +0000 (07:42 +0000)
N4 does not provide /dev/disk/by-partlabel/user.
So, new udev rule creates it based on /dev/disk/by-partlabel/[USER|USERDATA].
(There are two types of n4. One has USER, another has USERDATA.)

Change-Id: I568c517eee08ab75b402f1aa622805aa9dbd545c
(cherry picked from commit 0f6baf3e5d763df945b584c3d4d5ad2f154e662c)

packaging/system-plugin.spec
rules/61-system-plugin-n4.rules [new file with mode: 0644]

index a29b70ac154fd2cf55d454f6d733538ae67a45d4..44edb2fa6bb632a581159195b47454e244efe4a0 100644 (file)
@@ -172,6 +172,7 @@ ln -s ../tizen-system-env.service %{buildroot}%{_unitdir}/basic.target.wants/tiz
 mkdir -p %{buildroot}%{_prefix}/lib/udev/rules.d/
 install -m 644 rules/51-system-plugin-exynos.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
 install -m 644 rules/51-system-plugin-spreadtrum.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
+install -m 644 rules/61-system-plugin-n4.rules %{buildroot}%{_prefix}/lib/udev/rules.d/
 
 mkdir -p %{buildroot}%{_prefix}/lib/udev/hwdb.d/
 install -m 644 rules/60-evdev.hwdb %{buildroot}%{_prefix}/lib/udev/hwdb.d/
@@ -271,6 +272,7 @@ systemctl daemon-reload
 %{_unitdir}/tizen-fstrim-user.timer
 %{_unitdir}/tizen-fstrim-user.service
 %{_bindir}/tizen-fstrim-on-charge.sh
+%{_prefix}/lib/udev/rules.d/61-system-plugin-n4.rules
 
 %files device-circle
 %manifest %{name}.manifest
diff --git a/rules/61-system-plugin-n4.rules b/rules/61-system-plugin-n4.rules
new file mode 100644 (file)
index 0000000..fdfb268
--- /dev/null
@@ -0,0 +1,3 @@
+# for TM2 only
+ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="mmcblk*[0-9]", ENV{DEVTYPE}=="partition", ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="USER", SYMLINK+="disk/by-partlabel/user"
+ACTION=="add|change", SUBSYSTEM=="block", KERNEL=="mmcblk*[0-9]", ENV{DEVTYPE}=="partition", ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="USERDATA", SYMLINK+="disk/by-partlabel/user"