Re: [lfs-support] [blfs-support] LFS SVN-20130125 + Systemd HowTo
On Sun, 2013-01-27 at 18:34 +0100, Armin K. wrote: Hello, I have taken some time to write a howto for LFS + Systemd. Thanks for taking the time to do this. FYI, there's also a hint at http://www.linuxfromscratch.org/hints/downloads/files/systemd.txt. snip I don't need any more rants like Why the hell would I want systemd/dbus/libcap/expat/whatever on my system - It's your system your rules man, no one ever said I want to put these instructions in the book. Just a howto for people who want to try Systemd (and maybe profit). I understand Bruce's (and other's) objections to Systemd; I shared a lot of them for a while too. However, I'm now starting to sway over to the Dark Side (TM) myself. I'm considering creating a Systemd branch of LFS, and don't mind maintaining that alongside the mainline, sysvinit, trunk of LFS. Whether or not it will ever get merged, I'm not sure, but I certainly think that Systemd is mature enough that having it available in the form of a full version of the book, that can be built automatically via jhalfs, will help people try it out for themselves. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] [blfs-support] LFS SVN-20130125 + Systemd HowTo
On 01/27/2013 06:34 PM, Armin K. wrote: Hello, I have taken some time to write a howto for LFS + Systemd. The instructions follow LFS BOOK versioned SVN-20130125 with additions from BLFS BOOK versioned 2013-01-26. Packages are installed in same order as alwas, mentioned versions were used without any modifications to the LFS book ones. I did some diversions and I've mentioned them below. Packages were added in specified place for a reason, I think I explained it for attr, acl and libcap2. Howto starts from Chapter 6, assuming everything else has been done as before. 6.6. Creating Essential Files and Symlinks change touch /etc/mtab to ln -s /proc/self/mounts /etc/mtab Proceed with the Book linux 3.7.4 api headers man-pages 3.45 glibc 2.17 zlib 1.27 file 5.11 binutils 2.23.1 gmp 5.1.0 mpfr 3.1.1 mpc 1.0.1 gcc 4.7.2 sed 4.2.2 bzip2 1.0.6 pkg-config 0.28 ncurses 5.9 util-linux 2.22.2 psmisc 2.20 procps 3.3.6 e2fsprogs 1.42.7 (Not sure about this, but it could be possible that attr and acl need msgfmt, msgmerge and xgettext binaries from gettext package - I've installed all binaries from gettext in temporary stage so I can't confirm. I do remember that I had some problems with this in the past) attr 2.4.46 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/attr.html acl 2.2.51 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/acl.html (This one is not stricly required for systemd - but I installed it so Coreutils, Shadow and Systemd might benefit from it as well from libcap2). libcap2 2.22 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/libcap2.html shadow 4.1.5.1 coreutils 8.20 (without coreutils-8.20-i18n-1.patch) iana-etc 2.30 m4 1.4.16 bison 2.7 grep 2.14 readline 6.2 bash 4.2 libtool 2.4.2 gdbm 1.10 inetutils 1.9.1 perl 5.16.2 autoconf 2.69 automake 1.13.1 diffutils 3.2 gawk 4.0.2 findutils 4.4.2 flex 2.5.37 gettext 0.18.2 groff 1.22.1 xz 5.0.4 grub 2.0.0 less 451 gzip 1.5 iproute2 3.7.0 kbd 1.15.5 (without kbd-1.15.5-backspace-1.patch) kmod 12 libpipeline 1.2.2 make 3.82 man-db 2.6.3 patch 2.7.1 sysklogd 1.5 - Removed Sysvinit 2.88dsf (I choose to install few support programs from this package, like sulogin, mesg, pidof, last, fstab-decode and killall5 - I usually enable mesg and sulogin at util-linux stage though so no need for it from this package) make -C src cp -v src/last src/mesg /usr/bin ln -sfv last /usr/bin/lastb cp -v src/fstab-decode src/killall5 src/sulogin /sbin ln -sfv ../sbin/killall5 /bin/pidof cp -v man/{last,lastb,mesg}.1 /usr/share/man/man1 cp -v man/{fstab-decode,killall5,pidof,sulogin}.8 /usr/share/man/man8 tar 1.26 texinfo 4.13a udev 197 (extracted from systemd) - Removed vim 7.3 - Removed in my setup - Replaced with nano 2.3.1 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nano.html dhcp 4.2.5 http://www.linuxfromscratch.org/blfs/view/svn/basicnet/dhcp.html (My connection uses DHCP - client only with ifup script and configuration for eth0) expat 2.1.0 http://www.linuxfromscratch.org/blfs/view/svn/general/expat.html dbus 1.6.8 http://www.linuxfromscratch.org/blfs/view/svn/general/dbus.html Only difference now is that --without-systemdsystemunitdir becomes --with-systemdsystemunitdir=/lib/systemd/system Final configure script looks like ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/dbus-1.0 \ --with-console-auth-dir=/run/console/ \ --with-systemdsystemunitdir=/lib/systemd/system \ --disable-systemd \ --disable-static --disable-systemd is still there because Systemd requires D-Bus and D-Bus requires Systemd for certain functionality only. It does not see any use in LFS since it uses logind which we will disable in lfs because it would need PAM to work like it should. D-Bus should be recompiled in BLFS for dbus-launch binary with Xorg Libraries as dependency and --disable-systemd should be removed there after Systemd has been fully rebuilt for BLFS (Including PAM and some other deps like Glib and G-I for GUdev and so on). gperf 3.0.4 http://www.linuxfromscratch.org/blfs/view/svn/general/gperf.html xml-parser 2.41 http://www.linuxfromscratch.org/blfs/view/svn/general/perl-modules.html intltool 0.50.2 http://www.linuxfromscratch.org/blfs/view/svn/general/intltool.html systemd 197 Journald appears to look for adm group, so add it (gid is reserved in BLFS specificaly for this group) groupadd -g 16 adm ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-rootprefix= --with-rootlibdir=/lib --with-kbd-loadkeys=/bin/loadkeys --with-kbd-setfont=/bin/setfont --enable-split-usr --disable-static --disable-gudev --without-python make make check # triggers the testsuite but it appears to fail 5 tests. make install sed s@0775 root lock@0755
Re: [lfs-support] [blfs-support] LFS SVN-20130125 + Systemd HowTo
Armin K. wrote: Hello, I have taken some time to write a howto for LFS + Systemd. This is a nice piece of work. Could I ask you to reformat it slightly in accordance with http://www.linuxfromscratch.org/hints/sample-hint.txt and we can put it in the hints section of the web site. -- Bruce The instructions follow LFS BOOK versioned SVN-20130125 with additions from BLFS BOOK versioned 2013-01-26. Packages are installed in same order as alwas, mentioned versions were used without any modifications to the LFS book ones. I did some diversions and I've mentioned them below. Packages were added in specified place for a reason, I think I explained it for attr, acl and libcap2. Howto starts from Chapter 6, assuming everything else has been done as before. 6.6. Creating Essential Files and Symlinks change touch /etc/mtab to ln -s /proc/self/mounts /etc/mtab Proceed with the Book linux 3.7.4 api headers man-pages 3.45 glibc 2.17 zlib 1.27 file 5.11 binutils 2.23.1 gmp 5.1.0 mpfr 3.1.1 mpc 1.0.1 gcc 4.7.2 sed 4.2.2 bzip2 1.0.6 pkg-config 0.28 ncurses 5.9 util-linux 2.22.2 psmisc 2.20 procps 3.3.6 e2fsprogs 1.42.7 (Not sure about this, but it could be possible that attr and acl need msgfmt, msgmerge and xgettext binaries from gettext package - I've installed all binaries from gettext in temporary stage so I can't confirm. I do remember that I had some problems with this in the past) attr 2.4.46 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/attr.html acl 2.2.51 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/acl.html (This one is not stricly required for systemd - but I installed it so Coreutils, Shadow and Systemd might benefit from it as well from libcap2). libcap2 2.22 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/libcap2.html shadow 4.1.5.1 coreutils 8.20 (without coreutils-8.20-i18n-1.patch) iana-etc 2.30 m4 1.4.16 bison 2.7 grep 2.14 readline 6.2 bash 4.2 libtool 2.4.2 gdbm 1.10 inetutils 1.9.1 perl 5.16.2 autoconf 2.69 automake 1.13.1 diffutils 3.2 gawk 4.0.2 findutils 4.4.2 flex 2.5.37 gettext 0.18.2 groff 1.22.1 xz 5.0.4 grub 2.0.0 less 451 gzip 1.5 iproute2 3.7.0 kbd 1.15.5 (without kbd-1.15.5-backspace-1.patch) kmod 12 libpipeline 1.2.2 make 3.82 man-db 2.6.3 patch 2.7.1 sysklogd 1.5 - Removed Sysvinit 2.88dsf (I choose to install few support programs from this package, like sulogin, mesg, pidof, last, fstab-decode and killall5 - I usually enable mesg and sulogin at util-linux stage though so no need for it from this package) make -C src cp -v src/last src/mesg /usr/bin ln -sfv last /usr/bin/lastb cp -v src/fstab-decode src/killall5 src/sulogin /sbin ln -sfv ../sbin/killall5 /bin/pidof cp -v man/{last,lastb,mesg}.1 /usr/share/man/man1 cp -v man/{fstab-decode,killall5,pidof,sulogin}.8 /usr/share/man/man8 tar 1.26 texinfo 4.13a udev 197 (extracted from systemd) - Removed vim 7.3 - Removed in my setup - Replaced with nano 2.3.1 http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nano.html dhcp 4.2.5 http://www.linuxfromscratch.org/blfs/view/svn/basicnet/dhcp.html (My connection uses DHCP - client only with ifup script and configuration for eth0) expat 2.1.0 http://www.linuxfromscratch.org/blfs/view/svn/general/expat.html dbus 1.6.8 http://www.linuxfromscratch.org/blfs/view/svn/general/dbus.html Only difference now is that --without-systemdsystemunitdir becomes --with-systemdsystemunitdir=/lib/systemd/system Final configure script looks like ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libexecdir=/usr/lib/dbus-1.0 \ --with-console-auth-dir=/run/console/ \ --with-systemdsystemunitdir=/lib/systemd/system \ --disable-systemd \ --disable-static --disable-systemd is still there because Systemd requires D-Bus and D-Bus requires Systemd for certain functionality only. It does not see any use in LFS since it uses logind which we will disable in lfs because it would need PAM to work like it should. D-Bus should be recompiled in BLFS for dbus-launch binary with Xorg Libraries as dependency and --disable-systemd should be removed there after Systemd has been fully rebuilt for BLFS (Including PAM and some other deps like Glib and G-I for GUdev and so on). gperf 3.0.4 http://www.linuxfromscratch.org/blfs/view/svn/general/gperf.html xml-parser 2.41 http://www.linuxfromscratch.org/blfs/view/svn/general/perl-modules.html intltool 0.50.2 http://www.linuxfromscratch.org/blfs/view/svn/general/intltool.html systemd 197 Journald appears to look for adm group, so add it (gid is reserved in BLFS specificaly for this group) groupadd -g 16 adm ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-rootprefix= --with-rootlibdir=/lib --with-kbd-loadkeys=/bin/loadkeys