LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: Move /etc/udev/hwdb.bin to /var/lib/udev/?
Yes 5 41.67%
No 7 58.33%
Elsewhere (please specify) 0 0%
Voters: 12. You may not vote on this poll

Reply
  Search this Thread
Old 03-27-2021, 05:46 AM   #1
opty
Member
 
Registered: Mar 2021
Posts: 183

Rep: Reputation: Disabled
Moving /etc/udev/hwdb.bin BLOB to /var/lib/udev/


What about moving /etc/udev/hwdb.bin BLOB to /var/lib/udev/?

It seems to get created on every boot again...
 
Old 03-27-2021, 06:22 AM   #2
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,299

Rep: Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083
Is in /lib/udev/hwdb.d/ now, probably it's just useless
 
Old 03-27-2021, 06:36 AM   #3
opty
Member
 
Registered: Mar 2021
Posts: 183

Original Poster
Rep: Reputation: Disabled
See udev(7):

Quote:
The content of all hwdb files is read by udevadm(8) and compiled to a binary database located at /etc/udev/hwdb.bin, or alternatively /usr/lib/udev/hwdb.bin if you want ship the compiled database in an immutable image. During runtime only the binary database is used.
 
Old 03-27-2021, 07:08 AM   #4
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 2,299

Rep: Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083Reputation: 1083
Quote:
Originally Posted by opty View Post
See udev(7):
Sorry i confused, hwdb.d and hwdb.bin.
 
Old 03-28-2021, 07:09 AM   #5
opty
Member
 
Registered: Mar 2021
Posts: 183

Original Poster
Rep: Reputation: Disabled
Code:
opty@qeporkak:~$ sudo du -hbd 1 /etc/ | sort -nr | head -3
23919468        /etc/
8271280 /etc/udev
7835002 /etc/file
 
Old 03-30-2021, 11:07 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by opty View Post
See udev(7):

Quote:
The content of all hwdb files is read by udevadm(8) and compiled to a binary database located at /etc/udev/hwdb.bin, or alternatively /usr/lib/udev/hwdb.bin if you want ship the compiled database in an immutable image. During runtime only the binary database is used.
Seems the default from upstream is to have it in /etc/udev/hwdb.bin (since Slackware isn't shipped with the expectation of it being an immutable image). I don't think that moving it to simply keep it out of /etc/ is worth deviating from upstream.

It also seems it's been requested for upstream to change the location, but upstream determined that /etc/ is still the best place for it since /var/ isn't guaranteed to be there:

Quote:
It's unfortunate, but there is currently no better place than /etc. It is
dynamically created data, including config from /etc.

/lib must not be used for that type of data.

It would belong into /var, but that might not be availble.

It's the same reason the ld.so.cache is in /etc.

I'm closing this bug, because we don't have any better idea than what
we currentllyi do.

SOURCE: https://bugs.freedesktop.org/show_bug.cgi?id=67553#c2
 
2 members found this post helpful.
Old 03-31-2021, 10:22 AM   #7
opty
Member
 
Registered: Mar 2021
Posts: 183

Original Poster
Rep: Reputation: Disabled
Now that you mention it, I probably remember that. I should have remembered much earlier. :-/

I guess I just have to continue using rsync --exclude=/etc/udev/hwdb.bin.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating hardware index /sbin/udevadm hwdb staus Slackware 1 07-22-2016 12:52 PM
[SOLVED] Custom hwdb key mappings not working after Debian upgrade to stretch pinyaka Linux - General 1 06-07-2016 02:54 PM
udev: override hwdb definition miguelg Linux - General 1 05-08-2014 12:05 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
Moving /var/adm and /var/lib - why does it hurt? J_Szucs Linux - General 1 09-15-2004 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration