Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Dinit on Gentoo

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
JonathanILevi
n00b
n00b
Posts: 1
Joined: Sat Apr 23, 2022 4:29 pm

Dinit on Gentoo

  • Quote

Post by JonathanILevi » Sat Apr 23, 2022 4:40 pm

Has anyone used Dinit on Gentoo? I cannot find any thing about it.

I am currently primarily using Artix, which recently added support for Dinit. When I had to decide on which init system to use, I did some research and was quickly pleased with how Dinit does things. I keep trying to lookup Dinit and Gentoo, but Google is giving me nothing. I was just wandering if anyone has done it?

I am loving what I am seeing about Gentoo, and I want to try it out. I am particularly thrilled with the package manager, and how packages can be configured and not just installed in the one default way! I keep trying to like OpenRC, but I am continually unimpressed.

When I get a chance, maybe I'll try setting it up all myself...I'll definitely learn something.

https://github.com/davmac314/dinit
https://wiki.artixlinux.org/Main/Dinit
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2115
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

Re: Dinit on Gentoo

  • Quote

Post by GDH-gentoo » Sat Apr 23, 2022 11:03 pm

JonathanILevi wrote:Has anyone used Dinit on Gentoo?
Not personally.
JonathanILevi wrote:I cannot find any thing about it.
Not surprising, Dinit itself is not even packaged, so you can't do e.g. emerge dinit. And even if you could, using it as an init system would not be officially supported, in the sense that Gentoo developers are allowed to close any bugs that you file about it to the bug tracker, with resolution = "INVALID" :). But that said, it could likely be done with some effort. There are Gentoo users who are sucessfully running unsupported init systems.
JonathanILevi wrote:I am currently primarily using Artix, which recently added support for Dinit.
On Gentoo you would have two problems to solve. The easy one is packaging Dinit itself. Looking at its GitHub repository, it seems that the package provides just a bunch of C++ programs, and its build system is just a set of makefiles, so it should be easy to write an ebuild for it and putting it in a local ebuild repository. The hard one, which is shared by any other unsupported init system, is writing / adapting / getting from somewhere all the Dinit service description files that your computer would need, especially the ones that boot and shut it down, i.e. a Gentoo equivalent of Artix' dinit-rc package (I think that's what it's called). For supported init systems, the distribution developers do that work for you.
Top
fictitiousexistence
n00b
n00b
Posts: 8
Joined: Tue Oct 04, 2022 12:56 am

  • Quote

Post by fictitiousexistence » Mon Jan 09, 2023 11:35 pm

I set up dinit yesterday on gentoo and have been testing it.
I stole the dinit scripts from artix and modified them to work on my system.
Definitely boots faster than openrc now.
Top
sokhapkin
n00b
n00b
Posts: 63
Joined: Thu Jan 13, 2005 2:36 pm
Location: N Ft Myers, FL

  • Quote

Post by sokhapkin » Mon Jan 23, 2023 12:57 am

fictitiousexistence wrote:I set up dinit yesterday on gentoo and have been testing it.
I stole the dinit scripts from artix and modified them to work on my system.
Definitely boots faster than openrc now.
How the boot speed compares to openrc with

rc_parallel="YES"

in /etc/rc.conf?
Top
fictitiousexistence
n00b
n00b
Posts: 8
Joined: Tue Oct 04, 2022 12:56 am

  • Quote

Post by fictitiousexistence » Tue Jan 24, 2023 1:24 pm

I removed openrc but it used to take around 10 seconds or so. Now its about 3 seconds.

In addition to using rc_parallel, you can symlink /bin/sh to /bin/dash instead of bash to help it boot faster.

There was a package to do this with eselect (https://packages.gentoo.org/packages/ap ... eselect-sh) but that package was removed.

So if you used that package in the past to symlink it to dash then you might want to recheck.
After the package was removed my /bin/sh was symlinked back to bash and I had to manually link it to dash.

sokhapkin wrote:
fictitiousexistence wrote:I set up dinit yesterday on gentoo and have been testing it.
I stole the dinit scripts from artix and modified them to work on my system.
Definitely boots faster than openrc now.
How the boot speed compares to openrc with

rc_parallel="YES"

in /etc/rc.conf?
Top
ArsenArsen
Developer
Developer
Posts: 5
Joined: Mon Jan 16, 2023 4:07 pm
Location: Serbia
Contact:
Contact ArsenArsen
Website

  • Quote

Post by ArsenArsen » Fri Jan 27, 2023 10:30 pm

fictitiousexistence wrote:There was a package to do this with eselect (https://packages.gentoo.org/packages/ap ... eselect-sh) but that package was removed.
As the news item that talked about this change said, this mechanism was replaced with app-alternatives/sh.

https://www.gentoo.org/support/news-ite ... ction.html

As for dinit, it is quite possible to run alternative inits. I ran runit for the better part of two years before switching to systemd, and the maintenance was rather simple. I imagine dinit would go about the same.

Happy hacking!

EDIT: Please remember to also not conflate "boot that does less" with "faster boot". It is quite easy to forget some crucial part of the boot process when switching to alternative inits. To not deal with that, I just reused openrc sysinit and boot targets. In either case, hic sunt dracones.
use gcc
Top
Post Reply

6 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic