public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Is udev-mount still valid?
@ 2018-04-10 16:11 Mick
  2018-04-10 17:06 ` [gentoo-user] " Ian Zimmerman
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Mick @ 2018-04-10 16:11 UTC (permalink / raw
  To: gentoo-user

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

I've noticed udev has been playing up lately.  In particular, switching on 
wireless/bluetooth would cause udev to be pegged to 100% CPU and bluetooth 
won't work.  USB won't work thereafter; e.g. unplugging a USB mouse and 
replugging it is not detected.

I had a look at /etc/runlevels and noticed two broken symlinks:

lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
tmpfiles.dev
lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount -> /etc/init.d/udev-mount

The following two symlinks in the same runlevel are valid:

lrwxrwxrwx 1 root root   16 May  2  2011 udev -> /etc/init.d/udev
lrwxrwxrwx 1 root root   24 Feb 25  2017 udev-trigger -> /etc/init.d/udev-
trigger

I'm not saying the above missing symlinks are causing the bluetooth problem, 
but those symlinks should not be there.  Have I missed some enotice to remove 
these two symlinks, or is something borked in my system?

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* [gentoo-user] Re: Is udev-mount still valid?
  2018-04-10 16:11 [gentoo-user] Is udev-mount still valid? Mick
@ 2018-04-10 17:06 ` Ian Zimmerman
  2018-04-10 17:26 ` [gentoo-user] " Dale
  2018-04-10 18:50 ` Floyd Anderson
  2 siblings, 0 replies; 10+ messages in thread
From: Ian Zimmerman @ 2018-04-10 17:06 UTC (permalink / raw
  To: gentoo-user

On 2018-04-10 17:11, Mick wrote:

> I had a look at /etc/runlevels and noticed two broken symlinks:
> 
> lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
> tmpfiles.dev
> lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount -> /etc/init.d/udev-mount

FWIW, I have neither of these.

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] Is udev-mount still valid?
  2018-04-10 16:11 [gentoo-user] Is udev-mount still valid? Mick
  2018-04-10 17:06 ` [gentoo-user] " Ian Zimmerman
@ 2018-04-10 17:26 ` Dale
  2018-04-10 18:50 ` Floyd Anderson
  2 siblings, 0 replies; 10+ messages in thread
From: Dale @ 2018-04-10 17:26 UTC (permalink / raw
  To: gentoo-user

Mick wrote:
> I've noticed udev has been playing up lately.  In particular, switching on 
> wireless/bluetooth would cause udev to be pegged to 100% CPU and bluetooth 
> won't work.  USB won't work thereafter; e.g. unplugging a USB mouse and 
> replugging it is not detected.
>
> I had a look at /etc/runlevels and noticed two broken symlinks:
>
> lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
> tmpfiles.dev
> lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount -> /etc/init.d/udev-mount
>
> The following two symlinks in the same runlevel are valid:
>
> lrwxrwxrwx 1 root root   16 May  2  2011 udev -> /etc/init.d/udev
> lrwxrwxrwx 1 root root   24 Feb 25  2017 udev-trigger -> /etc/init.d/udev-
> trigger
>
> I'm not saying the above missing symlinks are causing the bluetooth problem, 
> but those symlinks should not be there.  Have I missed some enotice to remove 
> these two symlinks, or is something borked in my system?
>


If it helps any, I have this:

root@fireball / # /etc/init.d/udev  <tab twice>
udev          udev-settle   udev-trigger 
root@fireball / # /etc/init.d/udev

Dale

:-)  :-) 


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

* Re: [gentoo-user] Is udev-mount still valid?
  2018-04-10 16:11 [gentoo-user] Is udev-mount still valid? Mick
  2018-04-10 17:06 ` [gentoo-user] " Ian Zimmerman
  2018-04-10 17:26 ` [gentoo-user] " Dale
@ 2018-04-10 18:50 ` Floyd Anderson
  2018-04-13 10:01   ` Mick
  2 siblings, 1 reply; 10+ messages in thread
From: Floyd Anderson @ 2018-04-10 18:50 UTC (permalink / raw
  To: gentoo-user

On Tue, 10 Apr 2018 17:11:17 +0100
Mick <michaelkintzios@gmail.com> wrote:
>I've noticed udev has been playing up lately.  In particular, switching on
>wireless/bluetooth would cause udev to be pegged to 100% CPU and bluetooth
>won't work.  USB won't work thereafter; e.g. unplugging a USB mouse and
>replugging it is not detected.
>
>I had a look at /etc/runlevels and noticed two broken symlinks:
>
>lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
>tmpfiles.dev
>lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount -> /etc/init.d/udev-mount
>
>The following two symlinks in the same runlevel are valid:
>
>lrwxrwxrwx 1 root root   16 May  2  2011 udev -> /etc/init.d/udev
>lrwxrwxrwx 1 root root   24 Feb 25  2017 udev-trigger -> /etc/init.d/udev-
>trigger

Not sure which runlevel(s) you’re listing here but if I read the 
sys-apps/openrc-0.35.5.ebuild correct, the expected runlevel for your 
broken ones is sysinit. I’m using OpenRC and haven’t these files, so 
same as Ian wrote.

>I'm not saying the above missing symlinks are causing the bluetooth problem,
>but those symlinks should not be there.  Have I missed some enotice to remove
>these two symlinks, or is something borked in my system?

Maybe [1][2][3] are relevant here.



References:
  [1] <https://www.gentoo.org/support/news-items/2015-06-08-udev-init-scripts-changes.html>
  [2] <https://www.gentoo.org/support/news-items/2015-10-07-openrc-0-18-localmount-and-netmount-changes.html>
  [3] <https://www.gentoo.org/support/news-items/2016-11-04-important_fstab_and_localmount_update.html>



-- 
Regards,
floyd



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

* Re: [gentoo-user] Is udev-mount still valid?
  2018-04-10 18:50 ` Floyd Anderson
@ 2018-04-13 10:01   ` Mick
  2018-04-13 21:18     ` Floyd Anderson
  0 siblings, 1 reply; 10+ messages in thread
From: Mick @ 2018-04-13 10:01 UTC (permalink / raw
  To: gentoo-user

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

On Tuesday, 10 April 2018 19:50:12 BST Floyd Anderson wrote:
> On Tue, 10 Apr 2018 17:11:17 +0100
> 
> Mick <michaelkintzios@gmail.com> wrote:
> >I've noticed udev has been playing up lately.  In particular, switching on
> >wireless/bluetooth would cause udev to be pegged to 100% CPU and bluetooth
> >won't work.  USB won't work thereafter; e.g. unplugging a USB mouse and
> >replugging it is not detected.
> >
> >I had a look at /etc/runlevels and noticed two broken symlinks:
> >
> >lrwxrwxrwx 1 root root   24 Nov 25  2013 tmpfiles.dev -> /etc/init.d/
> >tmpfiles.dev
> >lrwxrwxrwx 1 root root   22 Oct 26  2012 udev-mount ->
> >/etc/init.d/udev-mount
> >
> >The following two symlinks in the same runlevel are valid:
> >
> >lrwxrwxrwx 1 root root   16 May  2  2011 udev -> /etc/init.d/udev
> >lrwxrwxrwx 1 root root   24 Feb 25  2017 udev-trigger -> /etc/init.d/udev-
> >trigger
> 
> Not sure which runlevel(s) you’re listing here but if I read the
> sys-apps/openrc-0.35.5.ebuild correct, the expected runlevel for your
> broken ones is sysinit. I’m using OpenRC and haven’t these files, so
> same as Ian wrote.

Yes, the broken symlinks are from the sysinit runlevel.  I checked another 
system of mine and it *also* has these broken symlinks ...  :-/

So, whatever mistake I made, I must have made it at least twice!  LOL!

Shouldn't the openrc or udev ebuild remove the symlinks, back when they became 
depracated?


> >I'm not saying the above missing symlinks are causing the bluetooth
> >problem, but those symlinks should not be there.  Have I missed some
> >enotice to remove these two symlinks, or is something borked in my system?
> 
> Maybe [1][2][3] are relevant here.
> 
> 
> 
> References:
>   [1]
> <https://www.gentoo.org/support/news-items/2015-06-08-udev-init-scripts-cha
> nges.html> [2]
> <https://www.gentoo.org/support/news-items/2015-10-07-openrc-0-18-localmoun
> t-and-netmount-changes.html> [3]
> <https://www.gentoo.org/support/news-items/2016-11-04-important_fstab_and_l
> ocalmount_update.html>


Thank you for these symlinks Floyd, I am using '/dev/sda1' notation for 
partitions in /etc/fstab, rather than any of the /dev/disk/by-* symlinks.  
Also, udev-settle is not in my sysinit runlevel.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [gentoo-user] Is udev-mount still valid?
  2018-04-13 10:01   ` Mick
@ 2018-04-13 21:18     ` Floyd Anderson
  2018-04-14 16:58       ` [gentoo-user] " Ian Zimmerman
  0 siblings, 1 reply; 10+ messages in thread
From: Floyd Anderson @ 2018-04-13 21:18 UTC (permalink / raw
  To: gentoo-user

On Fri, 13 Apr 2018 11:01:40 +0100
Mick <michaelkintzios@gmail.com> wrote:
>
> […]
>
>Yes, the broken symlinks are from the sysinit runlevel.  I checked another
>system of mine and it *also* has these broken symlinks ...  :-/
>
>So, whatever mistake I made, I must have made it at least twice!  LOL!

I think this is nothing special and not your fault. I vaguely remember 
having broken symlinks in runlevels too – was it also tmpfiles.dev or 
udev-mount? I cannot recall it but I’m sure about those in folder 
/etc/ssl/certs or regarded to the packages media-libs/mesa and 
x11-libs/libXvMC for example.

>Shouldn't the openrc or udev ebuild remove the symlinks, back when they became
>depracated?

In a perfect world …
But I can well believe how hard it is to keep track of probably 
externally changed symlinks or similar. Most of the time it works and 
while at it, I like to say “thanks!”. Sporadically and being in 
housekeeping mode, I run something like:

    # find /{etc,lib,usr,var} -path /etc/config-archive -prune -o \
        -type l -xtype l -print

to obtain exceptional cases but ignoring prior sanitised stuff.

> […]
>
>Thank you for these symlinks Floyd,

I posted those s/symlinks/links/ ;-) only for conveniently mouse 
clicking, maybe you can find more relevant things by a recursive grep 
search in:

  "$(portageq get_repo_path / gentoo)/metadata/news/"

>I am using '/dev/sda1' notation for partitions in /etc/fstab, rather 
>than any of the /dev/disk/by-* symlinks.

…and probably also in:

  /lib/udev/rules.d/

because rules using “*/by-*” syntax for their ‘SYMLINK+="..."’ foo for 
your re-plugged devices – as you can see with:

  $ udevadm monitor -u -p

>udev-settle is not in my sysinit runlevel.

As it is supposed to be:

  “udev and udev-trigger will be added to your sysinit runlevel, but not
  udev-settle. udev-settle should not be added to a runlevel. Instead, if
  a service needs this, it should add "need udev-settle" to its
  dependencies.”

by the 2015-06-08-udev-init-scripts-changes.en.txt news.


-- 
Regards,
floyd



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

* [gentoo-user] Re: Is udev-mount still valid?
  2018-04-13 21:18     ` Floyd Anderson
@ 2018-04-14 16:58       ` Ian Zimmerman
  2018-04-14 22:10         ` Floyd Anderson
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Zimmerman @ 2018-04-14 16:58 UTC (permalink / raw
  To: gentoo-user

On 2018-04-13 23:18, Floyd Anderson wrote:

>    # find /{etc,lib,usr,var} -path /etc/config-archive -prune -o \
>        -type l -xtype l -print

there is also the app-misc/symlinks package, and my own baby for the
same purpose:

https://very.loosely.org/paste/symlinks-pl

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] Re: Is udev-mount still valid?
  2018-04-14 16:58       ` [gentoo-user] " Ian Zimmerman
@ 2018-04-14 22:10         ` Floyd Anderson
  2018-04-15  0:25           ` Ian Zimmerman
  0 siblings, 1 reply; 10+ messages in thread
From: Floyd Anderson @ 2018-04-14 22:10 UTC (permalink / raw
  To: gentoo-user


Hi Ian,

On Sat, 14 Apr 2018 09:58:51 -0700
Ian Zimmerman <itz@very.loosely.org> wrote:
>On 2018-04-13 23:18, Floyd Anderson wrote:
>
>>    # find /{etc,lib,usr,var} -path /etc/config-archive -prune -o \
>>        -type l -xtype l -print
>
>there is also the app-misc/symlinks package,

TBH, I don’t expected there exists a package for this, so I’ve never 
searched for it and its additional features. Thanks for the input Ian.

>and my own baby for the same purpose:
>
>https://very.loosely.org/paste/symlinks-pl
>

It’s nice even it runs a little bit slower. I like the prefixed or ‘\0’ 
separated output for further processing of its result.

One pernickety remark (do not overrate it):

Because argument ROOTDIR is mandatory, the script should do something 
when ROOTDIR is not given, e.g. print usage. Maybe ‘-r’ should be also 
mandatory or the script should define some useful defaults. Consider 
following invocations:

    $ ./symlinks-pl
    $ ./symlinks-pl /path/to/broken-symlink
    $ ./symlinks-pl -r /path/to/broken-symlink

which do nothing and results with exit code 0.


-- 
Regards,
floyd



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

* [gentoo-user] Re: Is udev-mount still valid?
  2018-04-14 22:10         ` Floyd Anderson
@ 2018-04-15  0:25           ` Ian Zimmerman
  2018-04-15  1:11             ` Floyd Anderson
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Zimmerman @ 2018-04-15  0:25 UTC (permalink / raw
  To: gentoo-user

On 2018-04-15 00:10, Floyd Anderson wrote:

> > https://very.loosely.org/paste/symlinks-pl

> Because argument ROOTDIR is mandatory, the script should do something
> when ROOTDIR is not given, e.g. print usage. Maybe ‘-r’ should be also
> mandatory or the script should define some useful defaults. Consider
> following invocations:
> 
>    $ ./symlinks-pl
>    $ ./symlinks-pl /path/to/broken-symlink
>    $ ./symlinks-pl -r /path/to/broken-symlink
> 
> which do nothing and results with exit code 0.

I think this is more of a documentation bug in usage().  ROOTDIR is in
fact not mandatory - a list of zero or more items is expected, and each
item processed in turn.  I remember thinking about it for a second, and
this was the most consistent and regular behavior, so the most
attractive to my droid mind :-P

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.


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

* Re: [gentoo-user] Re: Is udev-mount still valid?
  2018-04-15  0:25           ` Ian Zimmerman
@ 2018-04-15  1:11             ` Floyd Anderson
  0 siblings, 0 replies; 10+ messages in thread
From: Floyd Anderson @ 2018-04-15  1:11 UTC (permalink / raw
  To: gentoo-user

On Sat, 14 Apr 2018 17:25:36 -0700
Ian Zimmerman <itz@very.loosely.org> wrote:
>On 2018-04-15 00:10, Floyd Anderson wrote:
>
>> > https://very.loosely.org/paste/symlinks-pl
>
>> Because argument ROOTDIR is mandatory, the script should do something
>> when ROOTDIR is not given, e.g. print usage. Maybe ‘-r’ should be also
>> mandatory or the script should define some useful defaults. Consider
>> following invocations:
>>
>>    $ ./symlinks-pl
>>    $ ./symlinks-pl /path/to/broken-symlink
>>    $ ./symlinks-pl -r /path/to/broken-symlink
>>
>> which do nothing and results with exit code 0.
>
>I think this is more of a documentation bug in usage().  ROOTDIR is in
>fact not mandatory - a list of zero or more items is expected, and each
>item processed in turn.  I remember thinking about it for a second, and
>this was the most consistent and regular behavior, so the most
>attractive to my droid mind :-P

Then, I think, ROOTDIR in synopsis of `symlinks-pl --help` should be:

    symlinks-pl [OPTION ...] [ROOTDIR ...]

like OPTION instead of:

    symlinks-pl [OPTION ...] ROOTDIR ...

to be more consistent to other command line tools. But I see your point 
and forget to say thanks for sharing. ;-)


-- 
Regards,
floyd



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

end of thread, other threads:[~2018-04-15  1:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-10 16:11 [gentoo-user] Is udev-mount still valid? Mick
2018-04-10 17:06 ` [gentoo-user] " Ian Zimmerman
2018-04-10 17:26 ` [gentoo-user] " Dale
2018-04-10 18:50 ` Floyd Anderson
2018-04-13 10:01   ` Mick
2018-04-13 21:18     ` Floyd Anderson
2018-04-14 16:58       ` [gentoo-user] " Ian Zimmerman
2018-04-14 22:10         ` Floyd Anderson
2018-04-15  0:25           ` Ian Zimmerman
2018-04-15  1:11             ` Floyd Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox