LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-06-2018, 05:00 PM   #1
spenced
Member
 
Registered: Oct 2017
Posts: 43

Rep: Reputation: Disabled
systemd startup and init, rc.d interactions vs sysvinit (migrated from sysvinit to system)


Hi everyone,

The backstory is when originally building my first LFS I thought I was following along with the 8.2 systemd version but after was all said and done I realized I had been using the 8.2 sysvinit version (derrr)

What I ended up doing instead of starting over is first moved:

init.d > init.d.bak
inittab > inittab.bak
rc.d > rc.d.bak

Then I installed systemd and dbus, reconfigured the system according to the systemd instructions and recompiled the kernel.

Everything appears to be working except a couple things.

During boot I receive a few error messages:

Code:
[152]: failed to execute '/etc/rc.d/init.d/setclock' '/etc/rc.d/init.d/setclock start': No such file or directory

systemd-udevd[135]: Process '/etc/rc.d/init.d/setclock start' failed with exit code 2.
systemd[1]: System is tainted: local-hwclock
I'm assuming some sysvinit processes trying to run during boot but I don't know why or how. I feel like this might be an easy fix I'm just a noob though so I'm a little befuddled. I don't want to just reintroduce the rc.d directory for fear of creating more boot conflicts between the new systemd and old sysvinit.

I'm also getting an error when running:

Code:
timedatedctl set-local-rtc 1

Failed to create bus connection: no such file or directory.
Are both errors related?

In addition journalctl tells me:

Code:
systemd-udevd[133]: Specified group 'kvm' unknown
What is the proper way to set up the kvm group? (i've enabled kvm in my kernel).

Thanks for the suggestions.

Spencer

Last edited by spenced; 07-07-2018 at 12:26 AM. Reason: typos
 
Old 07-07-2018, 12:37 AM   #2
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
I tracked down the bus connection problem after a long while. The problem was dbus was being compiled without systemd support. I found this out after I realized I was missing the dbus.socket unit file. When dbus compiles it automatically enables systemd support so I tradidn't think anything of it. What was happening was my PKG_CONFIG_PATH environment variable was not set properly so dbus though that systemd wasn't there. I've had this happen on other compiles during LFS but the compile usually fails so I am able to fix it right away. dbus does not report any errors though. It was only when I explicitly "--enable-systemd" didnt it throw the error after configure that said I didn't have systemd installed.

Just need to trackdown the hwclock error and I think I have a shiny new system to drive off the lot.
 
Old 07-20-2018, 11:39 AM   #3
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
hwclock error comes from a udev rule installed by lfs-bootscripts. Do a grep -r "hwclock" /lib/udev/rules.d, and remove the file
 
1 members found this post helpful.
Old 07-20-2018, 01:47 PM   #4
spenced
Member
 
Registered: Oct 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
awesome. thanks for the info!
 
  


Reply

Tags
systemd, sysvinit



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
LXer: systemd: Converting sysvinit scripts LXer Syndicated Linux News 0 11-04-2015 07:42 PM
[SOLVED] Anti-Systemd... how can we improve sysvinit? Daedalos Slackware 83 11-14-2013 08:17 PM
SysVinit vs OpenRC vs systemd vs other init system cristi92b Linux - Newbie 2 01-07-2013 03:02 AM
What are the advantages/disadvantages of using systemd versus sysvinit? ReaperX7 Linux - General 11 10-22-2012 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:27 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