ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ildar Mulyukov <ildar@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] Правила для udev/rules.d
Date: Thu, 15 Mar 2012 15:31:31 +0600
Message-ID: <1331803891.12991.2@ildar.innovations.kz> (raw)
In-Reply-To: <20120314153418.GO20198@osdn.org.ua> (from mike@osdn.org.ua on Wed Mar 14 21:34:18 2012)

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

On 14.03.2012 21:34:18, Michael Shigorin wrote:
> On Wed, Mar 14, 2012 at 11:07:35AM -0400, Dubrovskiy Viacheslav wrote:
> > Думаю есть такие варианты:
> > 1. Сделать отдельный файл с аналогичным содержанием в  
> /lib/udev/rules.d/?
> > 2. Сделать отдельный файл с аналогичным содержанием в  
> /etc/udev/rules.d/?
> 
> Если правка этого файла не предполагается, то (1), иначе (2).
> Насколько понимаю, (1).
> 
> А Кириллу надо рассказать, что /*/udev/rules.d/*.rules согласно
> udev README не является API => не следует закладываться на их
> существование или вид.  Не говоря уж о том, что такие хаки при
> sysv-раскладке конфигурации выглядят просто дико.

Мнэээ, извините, я предложу третий вариант.
(3) По сути, этот триггер хочет сделать то же, что уже сделано в этом  
файле для других блочных устройств:
# skip rules for inappropriate block devices
KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*",  
GOTO="persistent_storage_end"

Следовательно, нужно, чтобы был приложен простой патч (см. вложение).  
Для того, чтобы патч был правильно приложен, надо просто открыть багу  
на пакет:
$ rpm -qf 60-persistent-storage.rules
udev-rules-172-alt2

Всего хорошего.
-- 
Ildar Mulyukov,
   free SW designer/programmer/packager
=========================================
email: ildar@altlinux.ru
Jabber: ildar.mulyukov@gmail.com
ICQ: 4334029
ALT Linux Sisyphus http://www.sisyphus.ru
=========================================

[-- Attachment #2: 60-persistent-storage.rules.patch --]
[-- Type: text/x-patch, Size: 517 bytes --]

--- 60-persistent-storage.rules-	2011-07-12 00:35:47.000000000 +0600
+++ 60-persistent-storage.rules	2012-03-15 15:27:27.353991577 +0600
@@ -14,7 +14,7 @@
 SUBSYSTEM!="block", GOTO="persistent_storage_end"
 
 # skip rules for inappropriate block devices
-KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*", GOTO="persistent_storage_end"
+KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|dm-*|md*|ploop*", GOTO="persistent_storage_end"
 
 # ignore partitions that span the entire disk
 TEST=="whole_disk", GOTO="persistent_storage_end"

  reply	other threads:[~2012-03-15  9:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-14 15:07 Dubrovskiy Viacheslav
2012-03-14 15:34 ` Michael Shigorin
2012-03-15  9:31   ` Ildar Mulyukov [this message]
2012-03-16  2:37     ` Dubrovskiy Viacheslav

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331803891.12991.2@ildar.innovations.kz \
    --to=ildar@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git