Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-05-2013, 07:00 AM
|
#1
|
|
Member
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 532
Rep: 
|
Minor bug in BLFS dbus installation
Just found a small but annoying bug when installing dbus from here:
http://www.linuxfromscratch.org/blfs...eral/dbus.html
The useradd command is:
Code:
useradd -c "D-Bus Message Daemon User" -d /var/run/dbus -u 18 -g messagebus -s /bin/false messagebus
But in the bootscript from blfs-bootscripts-20120828/blfs/init.d the pidfile/socket is set like so
Code:
pidfile=/run/dbus/pid
socket=/run/dbus/system_bus_socket
This prevents dbus from starting ( and so ConsoleKit and maybe others ).
So either the boot script must be changed or the adduser command, either way is easy but may trip up some first timers.
I found it easier to set the pidfile/socket location in the init file to "/var/run/dbus" rather than change the user.
|
|
|
|
03-05-2013, 08:00 AM
|
#2
|
|
Member
Registered: May 2007
Posts: 288
Rep:
|
I can't comment about ConsoleKit (and maybe others) since I don't install it. But on my current system that I built back in September from svn-2012-09-02 and blfs-bootscripts-20120828 with dbus-1.6.4, the situation was the same as you reported today. Same useradd command. Same pidfile and socket definitions in the dbus script. The daemon seems to start and run okay for me. My next system, which I'm now building from svn-2013-03-02 and blfs-bootscripts-20130212 with dbus-1.6.8, also does not seem to have a dbus problem. In both systems, /var/run is a symlink to /run. I would not have predicted a problem from those differences in the messagebus user home dir and the dbus init script. Maybe so though, sometimes. Maybe people who create a separate partition for /var would notice something.
Last edited by stoat; 03-05-2013 at 08:56 AM.
|
|
|
|
03-05-2013, 08:47 AM
|
#3
|
|
Member
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 532
Original Poster
Rep: 
|
Quote:
Originally Posted by stoat
.../var/run is a symlink to /run...
|
Is this normal? I have a number of virtual machines installed and also a bootable Slackware and none of them have the symlink you describe nor have I seen it in the (C)(B)LFS books ( unless I missed a bit! ), and yes it would fix the problem as long as /var was not a separate partition or was mounted before dbus was run.
|
|
|
|
03-05-2013, 09:43 AM
|
#4
|
|
Member
Registered: May 2007
Posts: 288
Rep:
|
Well, it's normal for LFS anyway. That symlink is created by commands in section 6.5 of the v7.3 book.
|
|
|
|
03-05-2013, 10:00 AM
|
#5
|
|
Member
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 532
Original Poster
Rep: 
|
Quote:
Originally Posted by stoat
Well, it's normal for LFS anyway. That symlink is created by commands in section 6.5 of the v7.3 book.
|
Hmmm... just checked my script which builds the file system hierarchy and the command to make the link is there but definitely no link it must have been over written somewhere, I guess its not a big deal to have it either way, don't have clue where it got overwritten though.
I'll mark as solved.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|