ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] udev-197
Date: Sat, 26 Jan 2013 21:12:23 +0400
Message-ID: <20130126171223.GC6704@atlas.home> (raw)
In-Reply-To: <m3y5fhy1r5.fsf@hammer.lioka.obninsk.ru>

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

On Fri, Jan 25, 2013 at 02:51:10PM +0400, Sergey Bolshakov wrote:
> >>>>> "Dmitry" == Dmitry V Levin <ldv-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org> writes:
>  > On Thu, Jan 24, 2013 at 10:33:27PM +0400, sbolshakov-u2l5PoMzF/Uox3rIn2DAYQ@public.gmane.org wrote:
>  >> >>>>> "sbolshakov" == sbolshakov  <sbolshakov-u2l5PoMzF> writes:
[...]
>  >> http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=commit;h=48a849ee17fb25e0001bfcc0f28a4aa633d016a1
> 
>  > И как предлагается теперь выставлять правильные права на файлы устройств?
> 
> Не знаю. Я сделал так:

> --- /etc/rc.d/init.d/udevd~	2013-01-24 22:16:08.348977338 +0400
> +++ /etc/rc.d/init.d/udevd	2013-01-24 22:21:31.486708131 +0400
> @@ -196,7 +193,7 @@
>  		RETVAL=$[$RETVAL+$?]
>  		[ "$RETVAL" == "0" ] && echo "" >/proc/sys/kernel/hotplug
>  		/sbin/udevadm control --property="STARTUP=1"
> -		/sbin/udevadm trigger
> +		/sbin/udevadm trigger --action=add
>  		action "Populating /dev:" /sbin/udevadm settle
>  		/sbin/udevadm control --property="STARTUP="
>  		RETVAL=$[$RETVAL+$?]

И, судя по комментариям из вышеупомянутого коммита, добавление
--action=add - это правильное решение.

Хотя на самом деле в systemd-udev-trigger.service команды более
сложные:

  http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=blob;f=units/systemd-udev-trigger.service.in;h=391f9969306d96a6f993dc20270d5bd641e742d0;hb=0908dd2fd5536cf15d75780980ac2eca37ff800f

Там отдельно два вызова:

  udevadm trigger --type=subsystems --action=add
  udevadm trigger --type=devices --action=add

Причём это было так с самого первого появления этого файла ещё во
время существования udev как отдельного проекта:

  http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=commitdiff;h=fc1de713f5b754fb38876b5b797e18f812727f0a#patch3

Хотя ранее эти команды были в udev.service, но и там они впервые
появились именно в таком виде:

  http://git.altlinux.org/gears/s/systemd.git?p=systemd.git;a=commitdiff;h=43fefbf6f1c528947a77643582bcc34cf3538b2d#patch3

См. также:

  http://www.spinics.net/lists/hotplug/msg05105.html
  http://www.spinics.net/lists/hotplug/msg05119.html

Возможно, из-за отсутствия --type=subsystems не работает что-то ещё,
что не так заметно.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2013-01-26 17:12 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-22 10:10 sbolshakov
2013-01-24 18:33 ` sbolshakov
2013-01-24 18:55   ` Dmitry V. Levin
2013-01-25 10:51     ` Sergey Bolshakov
2013-01-26 17:12       ` Sergey Vlasov [this message]
2013-01-28 10:27         ` Alexey Shabalin
2013-01-28 10:35           ` Alexey Gladkov
2013-01-28 10:58             ` Alexey Shabalin
2013-01-28 12:25               ` Alexey Gladkov
2013-01-28 12:43                 ` Alexey Shabalin
2013-01-28 13:05                   ` Alexey Gladkov
2013-01-28 13:24                 ` Alexey Shabalin
2013-01-28 14:15                   ` Alexey Gladkov
2013-01-28 15:04                     ` Alexey Shabalin
2013-01-28 15:23                       ` Alexey Gladkov
2013-01-28 15:37                         ` Alexey Shabalin
2013-01-28 15:42                           ` Alexey Shabalin
2013-01-28 15:49                             ` Dmitry V. Levin
2013-01-29  9:44                               ` Alexey Shabalin
2013-01-29 11:38                                 ` Alexey Gladkov
2013-01-29 11:54                                   ` Alexey Shabalin
2013-01-29 12:01                                     ` Alexey Gladkov
2013-01-29 12:47                                       ` Alexey Shabalin
2013-01-28 13:29                 ` Sergei Epiphanov
2013-01-28 13:50                   ` Alexey Gladkov
2013-01-28 14:32                     ` Sergei Epiphanov

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=20130126171223.GC6704@atlas.home \
    --to=vsu@altlinux.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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