LinuxQuestions.org
Help answer threads with 0 replies.
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 02-27-2015, 05:38 AM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
Question OpenRC


Just a curiosity but has anyone attempted to build and use OpenRC on LFS with any luck?
 
Old 03-05-2015, 05:39 AM   #2
moonfrog
Member
 
Registered: Oct 2008
Location: San Diego County, CA
Distribution: LFS, Gentoo
Posts: 64

Rep: Reputation: 23
I was wondering the same thing and hoping you'd get a response.

Anyway, here's a bump and another curious OpenRC fan.
 
Old 03-05-2015, 12:48 PM   #3
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
Just a curiosity but has anyone attempted to build and use OpenRC on LFS with any luck?
Sheer inertia has kept me from pursuing anything other than the default SysV init. LFS is my everyday working platform on a desktop. I seldom reboot so the startup process is rather rare for me.
 
Old 03-05-2015, 04:00 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Original Poster
Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
I've looked at the package, and saw the Gentoo init files as examples and most of them are extremely complex in formulation to using OpenRC as a service handler (yes it still requires sysvinit as a backbone), and most of these scripts look similar but not so similar to s6 and Runit scripts, but with much higher detail.

However, I'm not comfortable with this system because the package is geared solely to Gentoo, kFreeBSD, and such that it's hard to decipher where files go outside of Gentoo.

I could easily say it's not worth pursuing, so unless anyone could show a better example of the scripts and the Gentoo core init scripts, this package might not be worth trying.

To be honest, using a bsdinit style might be better and even then you could still do tree based dependency loading with multiple scripts for background startup with minimal notifications.
 
Old 03-05-2015, 04:59 PM   #5
re_nelson
Member
 
Registered: Oct 2011
Location: Texas, USA
Distribution: LFS-SVN, Gentoo~amd64, CentOS-7, Slackware64-current, FreeBSD-11.1, Arch
Posts: 229

Rep: Reputation: Disabled
I do keep my LFS/BLFS userland very bleeding edge and go far beyond the book(s) especially with multimedia apps which I generally build from fresh GIT sources. As for the task of launching the system, as much as I stay current on other things, I stick with the familiar and stable. In short, in that regard I'll never be another Lennart. That said, I do very much like his PulseAudio package so I guess he ain't all bad.
 
Old 03-05-2015, 06:31 PM   #6
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
Today I booted with OpenRC, works fine.
 
Old 03-05-2015, 07:20 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Original Poster
Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
You built and installed the package and reworked all the LFS/BLFS init files to operate under openrc-run?
 
Old 03-05-2015, 11:27 PM   #8
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,059
Blog Entries: 2

Rep: Reputation: 227Reputation: 227Reputation: 227
Debian also has OpenRC. I suppose you could compare the scripts between Debian and Gentoo.
 
Old 03-06-2015, 06:34 AM   #9
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
I have built and installed OpenRC, but have used the scripts I have for Arch.
 
Old 03-06-2015, 07:32 PM   #10
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Original Poster
Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
If you care to share, can you draft up a step by step basis on how to get it working?
 
Old 03-08-2015, 06:17 PM   #11
bstaletic
Member
 
Registered: Apr 2014
Distribution: Arch
Posts: 39

Rep: Reputation: Disabled
1) Download the source from github
2) Follow the README

Precise command I used was "MKSELINUX=no MKTERMCAP=ncurses PKG_PREFIX=/usr make install"

The scripts can be found here.
 
Old 03-08-2015, 08:34 PM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Original Poster
Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
I'll have to check it prior to installation to make sure the package paths are completely LFS friendly.

To be honest, I wish LFS would eventually get an official OpenRC package.
 
  


Reply


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
LXer: Manjaro 0.8.11 Has Arrived, Users Can Choose Between Systemd and OpenRC LXer Syndicated Linux News 0 12-02-2014 12:32 PM
[SOLVED] Can't start NFS with systemd, works on OpenRC TobiSGD Linux - Server 1 07-09-2014 03:53 PM
LFS with OpenRC? ReaperX7 Linux From Scratch 5 08-13-2013 09:29 PM
SysVinit vs OpenRC vs systemd vs other init system cristi92b Linux - Newbie 2 01-07-2013 04:02 AM
/bin/* : cannot execute binary file (and an openrc problem) [gentoo] namish Linux - Newbie 6 04-07-2012 02:49 PM

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

All times are GMT -5. The time now is 06:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration