%description -n glib-warning-crash-enable
This package provices the configuration file that enable glib debugging.
+%package -n partlabel-user-udev-rule-for-tm2
+Summary: make /dev/disk/by-partlabel/user for TM2
+BuildArch: noarch
+
+%description -n partlabel-user-udev-rule-for-tm2
+This package provices the udev rule for /dev/disk/by-partlabel/user partition(only TM2).
+
%prep
%setup -q
install -m 644 units/01-glib_warning_crash_enable.conf %{buildroot}/etc/systemd/user.conf.d/
install -m 644 units/01-glib_warning_crash_enable.conf %{buildroot}/etc/systemd/system.conf.d/
+mkdir -p %{buildroot}%{_udevrulesdir}
+install -m 644 units/61-partlabel-user-for-tm2.rules %{buildroot}%{_udevrulesdir}/
+
%files
%license LICENSE.Apache-2.0
%manifest session-utils.manifest
%manifest session-utils.manifest
/etc/systemd/user.conf.d/01-glib_warning_crash_enable.conf
/etc/systemd/system.conf.d/01-glib_warning_crash_enable.conf
+
+%files -n partlabel-user-udev-rule-for-tm2
+%license LICENSE.Apache-2.0
+%manifest session-utils.manifest
+%{_udevrulesdir}/61-partlabel-user-for-tm2.rules
--- /dev/null
+# 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"