LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 11-21-2016, 09:00 PM   #1
firejuggler86
LQ Newbie
 
Registered: Feb 2016
Posts: 8

Rep: Reputation: Disabled
Fedora26 (Rawhide)-- have successfully configured system to boot and run without any running instances of systemd


I now have a fedora26 system running on SysV init instead of systemd, which, according to all sources that I could find online, is an impossible setup. This "project" of mine is in its VERY early stages, so, as would be expected, not everything works yet. However, based on the vast array of programs and functions that DO work without problems, and that also have systemd listed as dependencies, I am very seriously starting to question the credibility of declared dependencies of packages.

(I have not at this time *removed* the systemd files, and have no immediate plans to do so-- mainly to satisfy dependencies. But the fact that those programs whose dependencies I am satisfying by keeping systemd in place have full functionality while there are no systemd processes running on the system at all is why I question whether or not that dependency should even exist.)

For example, the package manager, DNF. Since I've been booting with sysvinit, I have had absolutely *ZERO* DNF related issues. None. Packages still install just as they should, system updates still update as one would expect them to, etc.. I decided to run the command "dnf remove systemd" (not to actually remove it, but to have a look at what removing it would do to the system). I got the error message that the package manager itself requires systemd. Yet, systemd is not running on the system and the package manager still works.

This does not make sense to me. If dnf TRULY needed systemd, then I would expect dnf to not work while systemd is sitting there inactive. Yet, dnf does work. I have heard similar accounts of other packages that supposedly require systemd, but they are known to still run with full functionality without systemd. It makes me feel as though we are being told things that are not true in order to lock us into being dependent on certain programs and software...in other words, to take away users' freedom. Can anyone provide a concrete reason why dnf would depend on systemd? Beyond, "your distribution knows what's best-- just trust them, no questioning allowed"? If there is a legitimate reason, I would truly like to know.. I like to understand the inter-workings of my system as thoroughly as I possibly can.

Thanks!
 
Old 11-21-2016, 09:04 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Good job! Keep it going, I'm curious.
 
Old 11-21-2016, 09:31 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
How are you (re-)building the initramfs ?.
 
Old 11-22-2016, 12:46 PM   #4
happydog500
Member
 
Registered: Dec 2006
Location: Washington St.
Distribution: Linux Mint 21, Windows 11
Posts: 308

Rep: Reputation: 5
Thank you for your work.
The whole Systemd thing didn't make sense to me. Be careful, some think that just asking about Systemd is some kind of major crime.

Chris.

Last edited by happydog500; 11-22-2016 at 12:53 PM.
 
Old 11-22-2016, 01:07 PM   #5
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
Quote:
Originally Posted by firejuggler86 View Post
Can anyone provide a concrete reason why dnf would depend on systemd? Beyond, "your distribution knows what's best-- just trust them, no questioning allowed"? If there is a legitimate reason, I would truly like to know.. I like to understand the inter-workings of my system as thoroughly as I possibly can.
Who told you that dnf required systemd? Maybe the rpm to install dnf depends on systemd (because its spec file lists it as a requirement) but if you look at the source code of dnf, it's pretty clear that systemd is not required.
 
Old 11-22-2016, 01:17 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Yes. The 'dnf' package 'says' it requires systemd:

Code:
[root@tools ~]# yum deplist dnf
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.solarvps.com
 * epel: mirror.math.princeton.edu
 * extras: mirror.netdepot.com
 * nux-dextop: mirror.li.nux.ro
 * updates: centos.chi.host-engine.com
package: dnf.noarch 0.6.4-2.el7
  dependency: /bin/sh
   provider: bash.x86_64 4.2.46-20.el7_2
  dependency: python-dnf = 0.6.4-2.el7
   provider: python-dnf.noarch 0.6.4-2.el7
  dependency: systemd
   provider: systemd.x86_64 219-19.el7_2.13
Also I looked at the source code, and it has systemd mentioned a few times.

https://github.com/rpm-software-mana...C%93&q=systemd

But I don't see anything that says systemd is required. Perhaps the options just get configured as 'off' when compiled.

Last edited by szboardstretcher; 11-22-2016 at 01:23 PM. Reason: Spell
 
Old 11-22-2016, 01:27 PM   #7
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
firejuggler86, you should look at the sources of applications and not the ready-made packages, especially since you are presumably re-building a lot of them anyway. What a package tells you is required is not necessarily what `ldd` will tell you.

A package is arbitrary. The author(s) can define anything in a package, whether it's actually required for compilation, runtime, or not required at all. Saying that the ready-made dnf rpm requires systemd is not the same as saying that the executable 'dnf' requires systemd.

Code:
$ find ./dnf.clone -type f -exec grep -iH systemd {} \;
[...]
dnf.clone/dnf.spec:BuildRequires:  systemd
dnf.clone/dnf.spec:Requires(post):     systemd
dnf.clone/dnf.spec:Requires(preun):    systemd
dnf.clone/dnf.spec:Requires(postun):   systemd
dnf.clone/dnf.spec:Requires:       rpm-plugin-systemd-inhibit
dnf.clone/dnf.spec:Requires:       rpm-plugin-systemd-inhibit
dnf.clone/dnf.spec:BuildRequires:  systemd
dnf.clone/dnf.spec:Requires(post):   systemd
dnf.clone/dnf.spec:Requires(preun):  systemd
dnf.clone/dnf.spec:Requires(postun): systemd
[...]
If you're rebuilding the Fedora distribution to exist without systemd, you should 1) post your work somewhere so everyone can benefit, because you're doing amazing work and 2) ignore what Fedora packaging is telling you (because Fedora naturally assumes that systemd is part of the core) and look at the source (which will not assume systemd).

Good luck.
 
Old 11-22-2016, 02:29 PM   #8
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
Dare I play devil's advocate and say that the only way you'll truly find out if systemD is inactive is by maybe truncating the binary or libraries to 0 bytes? Just because it's not running as an init system, doesn't mean the other applications aren't using parts of it in other ways.
 
  


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
[SOLVED] Creating multiple Apache instances on CentOS 7 SystemD Likeless Linux - Server 4 06-23-2016 06:36 PM
LXer: Prioritizing System Services with Systemd - Run a Process Permanently in the Background LXer Syndicated Linux News 0 05-06-2016 07:33 AM
[SOLVED] run script on boot with systemd Mario Blunk SUSE / openSUSE 2 09-23-2014 11:12 AM
udev fails but system boot completes successfully kaplan71 Fedora 0 02-11-2009 02:02 PM
Has anybody successfully installed a windows/linux dual boot system on a Compaq PC? bugsbunny Linux - Newbie 16 04-03-2004 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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