[kernel] r11839 - people/waldi/s390/s390-tools/debian
Bastian Blank
waldi at alioth.debian.org
Tue Jul 15 21:39:35 UTC 2008
Author: waldi
Date: Tue Jul 15 21:39:34 2008
New Revision: 11839
Log:
Install udev rules.
* debian/changelog: Update.
* debian/rules: Use dh_installudev.
* debian/s390-tools.udev: Add.
Added:
people/waldi/s390/s390-tools/debian/s390-tools.udev
Modified:
people/waldi/s390/s390-tools/debian/changelog
people/waldi/s390/s390-tools/debian/rules
Modified: people/waldi/s390/s390-tools/debian/changelog
==============================================================================
--- people/waldi/s390/s390-tools/debian/changelog (original)
+++ people/waldi/s390/s390-tools/debian/changelog Tue Jul 15 21:39:34 2008
@@ -1,6 +1,7 @@
s390-tools (1.6.2-1) UNRELEASED; urgency=low
* New upstream version.
+ * Install udev rules.
-- Bastian Blank <waldi at debian.org> Fri, 04 Jul 2008 11:17:16 +0200
Modified: people/waldi/s390/s390-tools/debian/rules
==============================================================================
--- people/waldi/s390/s390-tools/debian/rules (original)
+++ people/waldi/s390/s390-tools/debian/rules Tue Jul 15 21:39:34 2008
@@ -58,6 +58,7 @@
dh_testroot -a
dh_installchangelogs -a
dh_installdocs -a
+ dh_installudev -a --priority=65
dh_strip -a
dh_compress -a
dh_fixperms -a
Added: people/waldi/s390/s390-tools/debian/s390-tools.udev
==============================================================================
--- (empty file)
+++ people/waldi/s390/s390-tools/debian/s390-tools.udev Tue Jul 15 21:39:34 2008
@@ -0,0 +1,24 @@
+#
+# Rules for unique DASD device nodes created in /dev/disk/
+# This file should be installed in /etc/udev/rules.d
+#
+
+ACTION!="add|change|online", GOTO="dasd_symlinks_end"
+SUBSYSTEM!="block", GOTO="dasd_symlinks_end"
+
+# for partitions import parent information
+KERNEL=="*[0-9]", IMPORT{parent}=="ID_*"
+
+# by-id (hardware serial number)
+KERNEL=="dasd*[!0-9]", IMPORT{program}="/sbin/dasdinfo -a -e -b $kernel"
+KERNEL=="dasd*[!0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
+KERNEL=="dasd*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
+KERNEL=="dasd*[!0-9]", ENV{ID_UID}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_UID}"
+KERNEL=="dasd*[0-9]", ENV{ID_UID}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_UID}-part%n"
+
+# by-label/by-uuid (filesystem properties)
+IMPORT{program}="/sbin/vol_id --export $tempnode"
+ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
+ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
+
+LABEL="dasd_symlinks_end"
More information about the Kernel-svn-changes
mailing list