LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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

Reply
 
Search this Thread
Old 03-05-2013, 07:00 AM   #1
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
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.
 
Old 03-05-2013, 08:00 AM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 465

Rep: Reputation: 133Reputation: 133
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.
 
Old 03-05-2013, 08:47 AM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by stoat View Post
.../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.
 
Old 03-05-2013, 09:43 AM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 465

Rep: Reputation: 133Reputation: 133
Well, it's normal for LFS anyway. That symlink is created by commands in section 6.5 of the v7.3 book.
 
Old 03-05-2013, 10:00 AM   #5
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by stoat View Post
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.
 
  


Reply

Tags
blfs, dbus, error, init script, solution


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] BLFS svn Dbus won't start AndrewJM Linux From Scratch 1 06-14-2011 04:46 PM
MEPIS 7 minor bug report newbiesforever MEPIS 0 01-21-2008 04:32 PM
Bug hunting in -current [a minor issue to me...] truthfatal Slackware 6 03-25-2007 07:56 PM
LXer: Mozilla to fix 'minor' Firefox bug LXer Syndicated Linux News 0 12-13-2005 01:46 PM
minor bug - general forum - moderator name appears twice slackie1000 LQ Suggestions & Feedback 5 05-13-2005 08:32 AM


All times are GMT -5. The time now is 03:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration