LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-14-2017, 07:02 PM   #1
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Systemd-235 and mkinitramfs in BLFS


It appears that systemd has been radically changed upstream. Version 235 now uses a meson build environment instead of the traditional autotools. Using the BLFS svn book, it compiles and installs without problems.

However, if you boot a RAM disk in addition to vmlinuz and employ the mkinitramfs script in the book to make it, the result is a broken initrd that boots straight into a crash.

A clue that there is a problem is the following error from the script
Code:
mkinitramfs 4.14.6
Creating initrd.img-4.14.6... cp: missing destination file operand after '/tmp/initrd-work.juxEpfeXN0/lib'
Try 'cp --help' for more information.
Maybe the mkinitramfs script is incompatible with systemd-235.

Anyway, I got around the problem for now by hard coding kernel support for some of my hardware elements, mainly pata, sata, and network cards, eliminating the need for initrd.
 
Old 12-15-2017, 02:23 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
That's another good reason for not using systemd then! But I always thought that the whole point of building your own kernel was to simplify the boot by removing the need for an initramfs. I've never used one with a homemade kernel.
 
Old 12-15-2017, 06:16 AM   #3
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
Quote:
Originally Posted by hazel View Post
But I always thought that the whole point of building your own kernel was to simplify the boot by removing the need for an initramfs. I've never used one with a homemade kernel.
I boot by UUID, not by kernel name descriptor. Usually, that only works if there is a ramdisk.
 
Old 12-15-2017, 02:12 PM   #4
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Original Poster
Rep: Reputation: 69
I replaced mkinitramfs with dracut. I am marking this thread as solved.
 
  


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] Blfs 8.1 systemd missing drivers rabidlinux Linux From Scratch 3 09-10-2017 05:37 PM
[SOLVED] No audio BLFS 7.8 systemd kc3 Linux From Scratch 10 03-06-2016 04:46 PM
how to install systemd units in BLFS Carl_cj Linux From Scratch 4 09-24-2014 05:10 AM
[SOLVED] BLFS: Udev Extras (from systemd) error erkant Linux From Scratch 2 12-06-2012 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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