LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 11-19-2017, 10:50 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Linux From Scratch, Bedrock
Posts: 315
Blog Entries: 46

Rep: Reputation: 12
could an initramfs / initrd mess up a bedrock system?


So ages ago (or so it seems) I'd bedrocked my slackware system and it ran nice and stable for a while.

I attempted to bedrock a Crux system and that had some weirdness. It ran, but not with a high confidence level.

Bedrocked my LFS system and that did not end well.

Now, my setup is kind of complicated in that everything Linux is on LVM volumes that are in turn on a LUKS encrypted partition. Naturally, one has to use an initrd in order to mount the partitions. Slackware has a built in system of generating a needed initrd. Crux, as far as I could tell, does not. Neither does my LFS. So I used betterinitramfs (https://github.com/slashbeast/better-initramfs). The build of that was automated and ran without problems. It is not tied to a particular distro: one initrd has been re-used for more than one install. I used it for Crux and LFS. Runs fine, boots fast. All is well, right?

Now, after quite some time, a thought occurred to me: my failed bedrocks all used betterinitramfs and my successful one did not. could some non-obvious interaction of the betterinitramfs and bedrock be causing problems? Has anyone else used this combination?

Last edited by jr_bob_dobbs; 11-19-2017 at 10:55 PM.
 
Old 11-20-2017, 07:01 AM   #2
ParadigmComplex
Bedrock Linux Founder
 
Registered: Feb 2016
Distribution: Bedrock Linux
Posts: 60

Rep: Reputation: Disabled
Technically, it's quite possible for an initramfs to mess up any distro. It could format your harddrive, or leave processes behind that randomly spike the CPU or consume most of your memory, it could mess up permissions on the filesystem, etc. It's a process with unlimited permissions that runs before any other userland processes else that could have constrained it. It can do just about anything that's possible to do with a computer, both good and bad.

I've not heard anyone explicitly state they've used Bedrock Linux with better-initramfs, successfully or otherwise, and so it's quite possible there's an incompatibility there. For example, the current Bedrock Linux release requires the initramfs mount the root filesystem read-write; perhaps the relevant Bedrock Linux installation instructions section which attempt to do so don't work with better-initramfs. Going forward I'm going to see if I can remove the initramfs read-write requirement, but for the time being that's a possible source of issues.

It's very difficult to say with any certainty whether or not your issues were related to the initramfs, especially without more information about their symptoms. If the problem you're having was that the brn menu was hitting a read-only file system, then yes, that's likely the culprit. If the issue is you get a parsing error when trying to run brs, it's likely a typo in a configuration file. It sounds like there's also a correlation between Bedrock+Crux and your issues - maybe that's where the problem lies, independent of the initramfs. I need much more information to say with any certainty.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bedrock not using brsh.conf, dropped to bedrock's /bin/sh Siljrath Linux - Distributions 2 08-25-2014 06:47 AM
initramfs-tools scripts and initrd image for encrypted system thespacemonkey Linux - Kernel 2 10-15-2010 04:55 PM
initrd vs. initramfs rrlangly Gentoo 1 05-24-2010 10:05 AM
Initramfs vs Initrd Potatos Linux - Kernel 1 05-03-2010 06:13 AM
Confusion PLEASE HELP!!!! Initrd + initramfs aroche Linux - General 2 08-18-2006 02:59 PM

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

All times are GMT -5. The time now is 03:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration