[lfs-dev] LFS SVN and Systemd Report

Armin K. krejzi at email.com
Fri May 25 05:55:58 PDT 2012

Hello there, I have just finished LFS+BLFS SVN (with software from LFS 
Trac too, including Perl 5.16.0, Udev+Systemd 183 and Linux 3.4.0).

I say LFS+BLFS since I installed some BLFS packages during LFS build. I 
did not want to complete everything and then install BLFS packages and 
possibly recompile some of LFS packages. But, never the less. Everything 
works. Also, I ditched sysklogd and used rsyslog for my system since it 
provides native systemd units.

I want to add that I've experimented with "the /usr merge" since I use 
one partition for everything.

$ uname -a
Linux lfs 3.4.0-krejzi #1 SMP Thu May 24 18:33:15 CEST 2012 i686 GNU/Linux

My hardware is an older Pentium 4 HT with 1024MB of DDR RAM.

After booting with basic software installed, I get
$ systemd-analyze
Startup finished in 1686ms (kernel) + 7995ms (userspace) = 9682ms

Currently running services are

Or if you prefer as ps output

Memory usage with such services is as following
$ free -m
              total       used       free     shared    buffers     cached
Mem:          1007         25        981          0          0          6
-/+ buffers/cache:         18        989
Swap:         1080          0       1080

with lot of modules as shown here

I saw that someone complained about mount output on some other systemd 
distro. Here is mount output from my installation. I needed to remove 
some useless mounts that I did not need like debugfs and such.

securityfs seems to be hardcoded into systemd binary. Others are cgroups 
which expose like that. Also, /tmp can be set not to use tmpfs if desired.

Since I don't even install LFS bootscripts package, I don't have any 
networking with systemd. But that one is simple ... Just executing 
dhclient eth0 brings up my interface. Also, I have created /etc/rc.local 
for local scripts so I could run some scripts from there at startup. 
(Found in Debian too).

If you are interested, here is dmesg output

I don't have any build stats or such stuff, I needed 3 days to build 
everything, but with taking notes, making patches so I can install 
everything how I want with just one command.

So, is LFS still going to avoid systemd? I said on trac that it is not 
possible to install just udev from systemd tarball.

I've also discovered that udevd is now named systemd-udevd and located 
in /usr/lib/systemd (or /lib/systemd/ if not using /usr merge like me).

systemd also manages configuration of locale (/etc/locale.conf), 
timezone (/etc/timezone), hostname (/etc/hostname) keyboard and console 
settings (/etc/vconsole.conf). Note that vconsole setup is broken in 
default systemd installation since it starts before KMS and KMS resets 
console font and charset. I've hacked on it and set it to start after 
tty's have been spawned.

Regarding the dependencies, I've discovered that the following are minimal:

attr and libcap
expat and dbus
xml::parser and intltool

Also, if intended to use systemd-logind as consolekit replacement, 
linux-pam is necesary for pam_systemd.so.

Other deps are tcp wrappers (no idea), cryptsetup (for accessing 
encrypted volumes), selinux and audit (no use on lfs anyways, I've 
stopped using it).

Your move.

More information about the lfs-dev mailing list