{"id":157,"date":"2017-08-09T00:41:01","date_gmt":"2017-08-09T00:41:01","guid":{"rendered":"http:\/\/marshallpdavis.com\/?page_id=157"},"modified":"2019-09-22T03:15:33","modified_gmt":"2019-09-22T03:15:33","slug":"lfs-8-0-systemd-from-archlinux","status":"publish","type":"page","link":"https:\/\/marshallpdavis.com\/?page_id=157","title":{"rendered":"LFS 8.0-systemd from ArchLinux"},"content":{"rendered":"<p><a href=\"http:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/Screenshot_lfs_arch_2017-08-08.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/Screenshot_lfs_arch_2017-08-08-300x167.png\" alt=\"Final config running\" class=\"alignnone size-medium wp-image-166\" width=\"300\" height=\"167\" srcset=\"https:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/Screenshot_lfs_arch_2017-08-08-300x167.png 300w, https:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/Screenshot_lfs_arch_2017-08-08-672x372.png 672w, https:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/Screenshot_lfs_arch_2017-08-08.png 720w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nFull logs (over 50MB uncompressed):<br \/>\n<a href=\"http:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/LFS_ARCH_Logs.7z\">LFS_ARCH_Logs.7z<\/a><\/p>\n<p>Kernel Config (VERY bare bones, pretty useless for a working box):<br \/>\n<a href=\"http:\/\/marshallpdavis.com\/wp-content\/uploads\/2017\/08\/kerncfg.20170808.2011.txt\">kerncfg.20170808.2011<\/a><\/p>\n<p>ArchLinux base using archlinux-2017.07.01-x86_64.iso<br \/>\nVirt-manager-&gt;New VM-&gt;Linux-&gt;openSUSE Tumbleweed<br \/>\n4GB RAM, 4 cores, 40GB disk<\/p>\n<p>MBR:<br \/>\n5GB, ArchLinux, XFS, \/<br \/>\n10GB, LFS, XFS, \/lfs<br \/>\n20GB, home, XFS, \/home<br \/>\n5GB, swap<\/p>\n<p>Install date: 23-JUL-2017<br \/>\nrankmirrors -n 6 for ArchLinux mirrors<\/p>\n<p>Install:<br \/>\nbase &#8211; for base ArchLinux system<br \/>\ngrub &#8211; bootloader<br \/>\nwget &#8211; for download of pkgs<br \/>\nbase-devel &#8211; compilation programs<\/p>\n<p>SBU:<br \/>\nreal 1m9.859s<br \/>\nuser 2m6.887s<br \/>\nsys 0m18.963s<\/p>\n<p>Variations from the book:<br \/>\n5.5 &amp; 5.10 gcc-6.3.0: (fix extracted from patch found at <a href=\"https:\/\/www.mail-archive.com\/lede-dev@lists.infradead.org\/msg07916.html\">https:\/\/www.mail-archive.com\/lede-dev@lists.infradead.org\/msg07916.html<\/a>)<br \/>\nmodify gcc\/ubsan.c:1474 replacing:<br \/>\n|| xloc.file == &#8216;\\0&#8217; || xloc.file[0] == &#8216;\\xff&#8217;<br \/>\nwith:<br \/>\n|| xloc.file[0] == &#8216;\\0&#8217; || xloc.file[0] == &#8216;\\xff&#8217;<\/p>\n<p>5.23 gawk-4.1.4:<br \/>\ntests _mbstr1, _mbstr2 will fail with:<br \/>\n<strong>Invalid multibyte data detected. There may be a mismatch between your data and your locale.<\/strong><\/p>\n<p>5.28 make-4.2.1:<br \/>\ntest for loadavg will fail with:<br \/>\n<strong>Can&#8217;t locate test_driver.pl in @INC (@INC contains: \/usr\/lib\/perl5\/site_perl \/usr\/share\/perl5\/site_perl \/usr\/lib\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib\/perl5\/core_perl \/usr\/share\/perl5\/core_perl) at .\/run_make_tests.pl line 61.<\/strong><\/p>\n<p>Note: Optional tests were not run in chapter 6 if they required BLFS packages or needed to be run after installation or rebooting.<\/p>\n<p>Using systemd static network config<\/p>\n<p>On my first attempt I missed virtio_blk on kernel config &#8211; doh! Booted from the Arch ISO and re-entered chroot, fixed kernel config and rebooted.<\/p>\n<p>Wow! 32MB used! Time to tweak&#8230;<br \/>\nI wonder how much systemd itself adds vs services starting up&#8230;<br \/>\nNot much in the way of services running<\/p>\n<p>Tweaky!<br \/>\nDown to 28MB now&#8230;<\/p>\n<p>Moar tweaky!<br \/>\nOops, too much &#8211; need cgroups for tmpfs &#8211; doh!<br \/>\nDown to 26MB now&#8230;<\/p>\n<p>Ethernet device changed names from ens3 to enp0s3 &#8211; fixed in static network file and renamed file, rebooted, and we now have networking up and running, pinged google.com &lt;16ms<\/p>\n<p>I think that is about it &#8211; 20MB!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Full logs (over 50MB uncompressed): LFS_ARCH_Logs.7z Kernel Config (VERY bare bones, pretty useless for a working box): kerncfg.20170808.2011 ArchLinux base using archlinux-2017.07.01-x86_64.iso Virt-manager-&gt;New VM-&gt;Linux-&gt;openSUSE Tumbleweed 4GB RAM, 4 cores, 40GB disk MBR: 5GB, ArchLinux, XFS, \/ 10GB, LFS, XFS, \/lfs 20GB, home, XFS, \/home 5GB, swap Install date: 23-JUL-2017 rankmirrors -n 6 for ArchLinux mirrors &hellip; <a href=\"https:\/\/marshallpdavis.com\/?page_id=157\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LFS 8.0-systemd from ArchLinux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":183,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-157","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=157"}],"version-history":[{"count":7,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/157\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/157\/revisions\/185"}],"up":[{"embeddable":true,"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=\/wp\/v2\/pages\/183"}],"wp:attachment":[{"href":"https:\/\/marshallpdavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}