LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   /run/udev/watch broken links (https://www.linuxquestions.org/questions/slackware-14/run-udev-watch-broken-links-4175485010/)

hpfeil 11-18-2013 09:34 AM

/run/udev/watch broken links
 
All of the links in /run/udev/watch are broken. I ran a script that changes each link to point to the correct file in /run/udev/data. I haven't a clue whether or not that needs to work or what it does. With udev absorped into systemd, all bets are off.

bartgymnast 11-18-2013 09:55 AM

uhmmm,

if not mistaken:

/run/udev/watch is generated by initramfs.
and copied to /run/udev/data when initramfs finishes.

so symlinking this is dangerous, as it might break hardware that you attach.

hpfeil 11-19-2013 09:00 AM

(That was a one-time temporary kludge. I stumbled up that while looking for something else.)
The folder /run/udev/watch contains links to each file in /run/udev/data as if they were in the same directory. If initramfs doesn't copy those to /run/udev/data, I must have a broken initramfs. Thing is, initramfs is a fedora/redhat nom de guerre; slackware uses initrd. It is my understanding that their contents are different. /boot/initrd-tree is somewhat different than lsinitramfs last time I looked (init is a link to /usr/lib/systemd/systemd). Initrd does mount /proc /sys /run and /dev, but leaves populating those to udev. I guess I need to fix a udev.d/rules file in /etc to find out why udev leaves /run/udev/watch in situ with no links in /run/udev/data.

Thanks for your help, bartgymnast!
--
Obquote: "I'm an idiot, but I'm ok." -apologies to Colonel Torvalds.

[Now if I can just figure out why Thunar segfaults with error 4....]

bartgymnast 11-19-2013 09:28 AM

/run is a temporarily directory that will be cleared on each reboot.

you should not worry at all about /run/udev/watch <-- these are temporarily files)

hpfeil 11-20-2013 01:10 PM

What? Me worry? I know /var/run and/or /run is a tempfs, but it's the principal of the thing. An entire directory filled with nothing but broken links? It's just the 'b' data. The data files contain two numbers, one is the name of the broken link and the other is a hash. They used to pay me a lot of money to fret such minutia, but now, it's just another junior programmer without a B.S. or M.S. in Computer Science or Computer Systems Engineering. I worry over the morning cuppa whether to go fly fishing or go to the stadium to watch a ball game. ;-)

(Things like rc.udev deleting /dev/shm with a note that it will put it back later, only to put back /dev/pts and forget about /dev/shm. XFCE won't even make a splash page without it. Time for my nap.)


All times are GMT -5. The time now is 12:55 PM.