ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Правила для udev/rules.d
@ 2012-03-14 15:07 Dubrovskiy Viacheslav
  2012-03-14 15:34 ` Michael Shigorin
  0 siblings, 1 reply; 4+ messages in thread
From: Dubrovskiy Viacheslav @ 2012-03-14 15:07 UTC (permalink / raw)
  To: Devel

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

Здравствуйте.


Озадачился тут упаковкой ploop http://wiki.openvz.org/Ploop
В оригинальном спеке есть такой триггер:

%triggerin -- udev
SCRIPT="/lib/udev/rules.d/60-persistent-storage.rules"
if [ -f $SCRIPT ]; then
        fgrep 'KERNEL=="ploop*", GOTO="persistent_storage_end"' $SCRIPT
> /dev/null 2>&1 ||
        sed -i -e '1 s/^/KERNEL=="ploop*",
GOTO="persistent_storage_end"\n/;' $SCRIPT
fi

Меня смущает, что в /lib/udev/rules.d/60-persistent-storage.rules
написано: - "do not edit this file, it will be overwritten on update"
Да и не очень это правильно править файлы от чужого пакета.
Вопрос: Как правильно сделать?

Думаю есть такие варианты:
1. Сделать отдельный файл с аналогичным содержанием в /lib/udev/rules.d/?
2. Сделать отдельный файл с аналогичным содержанием в /etc/udev/rules.d/?


-- 
WBR,
Dubrovskiy Viacheslav


[-- Attachment #2: Криптографическая подпись S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4903 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-16  2:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-14 15:07 [devel] Правила для udev/rules.d Dubrovskiy Viacheslav
2012-03-14 15:34 ` Michael Shigorin
2012-03-15  9:31   ` Ildar Mulyukov
2012-03-16  2:37     ` Dubrovskiy Viacheslav

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