LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-08-2013, 12:01 AM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Question LFS with OpenRC?


Is there any information, other than the documentation at Gentoo's website, I can get into creating an LFS build with OpenRC as a choice of INIT?
 
Old 08-09-2013, 06:47 PM   #2
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
Is there any information, other than the documentation at Gentoo's website, I can get into creating an LFS build with OpenRC as a choice of INIT?
I normally don't ask why when such things arise because of the beauty of the LFS approach is that you can do whatever you want and there need not be a reason other than curiosity and to learn more. That said, above and beyond gaining more experience with an alternative init approach (certainly not systemd), what advantages are there in an LFS context with openrc as opposed to sysvinit?

And you're right, aside from the Gentoo documentation, there's very little elsewhere about openrc. It does look intriguing and as a sometimes Gentoo user, it's semi-familiar but admittedly, I take it for granted since it "just works" (TM) and I've never probed how it works. It's a shame that Roy Marples' site is no longer maintained since the entries there did show promise in revealing the under the hood aspects of openrc.

I presume you've seen this?

http://forums.freebsd.org/showthread.php?t=35770 (Replacement of Init System)

Last edited by re_nelson; 08-09-2013 at 06:55 PM.
 
Old 08-10-2013, 08:01 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yeah, I found this link posted:

https://wiki.freebsd.org/launchd

It's about FreeBSD attempting a port of Launchd from OSX which would be somewhat interesting if they can as Launchd is a very interesting INIT system, though the page seems somewhat abandoned.

My only concern was how difficult it was to build, install, and setup OpenRC from Scratch (no pun intended), any dependencies, and if there were any sample scripts I'd need to utilize to craft up a native script for my system.

Plus, the reason I chose OpenRC was simply the fact that OpenRC seems to supplement and enhance sysvinit rather than outright replace it, and it already has a usage on Gentoo which seems fairly stable, and was actually pushed out by Gentoo to be freely open to importing into other systems.
 
Old 08-10-2013, 08:22 PM   #4
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
My only concern was how difficult it was to build, install, and setup OpenRC from Scratch (no pun intended), any dependencies, and if there were any sample scripts I'd need to utilize to craft up a native script for my system.
One thing your posting did was to put a little fire in my belly on far more modest task, one I had contemplated for years but only started working on a few hours ago. I'm in the process of redoing all of init scripts (both those from LFS/BLFS and my own) to use /bin/dash rather than /bin/bash. I ran the checkbashims Perl script over the whole directory and there are a large number of bash-specific constructs that I'm now shedding.

So this is my first small step toward trying something a wee bit different in the init process. Why? Well, not to make it boot any faster since that's a low priority of mine but just to scratch another itch of curiosity.

Last edited by re_nelson; 08-10-2013 at 08:47 PM.
 
Old 08-11-2013, 04:57 AM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Take a look at the PKGBUILDs for Arch. There you can see dependencies and how they build it.
 
Old 08-13-2013, 08:29 PM   #6
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558

Original Poster
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Thank for the info Lennie.

My delving into OpenRC is merely but starting at about how sysvinit can be extended rather than just simply replaced as init and management software like systemd wants to do and how with the right extensions, support vectors, and native programs and libraries. Plus, I'd rather do things the right way, rather than the wrong way. This is Linux, not Lennix.

I had been deciding between OpenRC, RUnit, and a variant of Slackware's BSD-like SysV scripts, and OpenRC seemed more a logical choice to not have to completely abandon sysvinit, but supplement, extend, and enhance it in various ways and means while holding true to the LSB, POSIX, and SUS philosophies, and keeping compatible scripting.
 
  


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
SysVinit vs OpenRC vs systemd vs other init system cristi92b Linux - Newbie 2 01-07-2013 03:02 AM
/bin/* : cannot execute binary file (and an openrc problem) [gentoo] namish Linux - Newbie 6 04-07-2012 01:49 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM

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

All times are GMT -5. The time now is 12:30 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
Open Source Consulting | Domain Registration