LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-27-2020, 08:42 AM   #1
bw42
Member
 
Registered: Feb 2011
Distribution: Slackware
Posts: 65

Rep: Reputation: 51
Installer Initrd


I've been reading through various websites on initrd and busybox. Have tried searching through the Slackware wiki. But my searches seem to fall short of what I'm working to do.

Is there somewhere I'm missing with info, or a helpful script, to built the initrd containing the Slackware installer?

I've extracted the setup scripts from the initrd and haven been setting up a busybox configuration.
I was just hoping there would be something that could save me time.
 
Old 06-27-2020, 08:45 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,570
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Yes, there's a very good shell script in /usr/share/mkinitrd. It will scan your hardware and print out a list of the modules you need to specify for inclusion when running the mkinitrd command.
 
Old 06-27-2020, 08:55 AM   #3
bw42
Member
 
Registered: Feb 2011
Distribution: Slackware
Posts: 65

Original Poster
Rep: Reputation: 51
Thank you Hazel, I am aware of the mkinitrd generator script.
I'm not trying to make an initrd to just boot my system though.
From what I've seen that script works to make one for the already installed system.

I'm trying to make a new initrd environment to run the setup scripts for installing Slackware with.
I have the busybox binary built for PowerPC64le and extracted the setup scripts from the Slackware64 installer.

I'm now working on figuring out how to put it all together into a bootable install environment.
 
Old 06-27-2020, 10:11 AM   #4
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
For reverse engineering/rebuild of existing initrd, you can try my Python initrd module. It works on most platforms and you don't need to be root.

python3 -m pip install initrd

See the examples for how to use it:
https://github.com/bifferos/initrd/tree/master/examples

It requires gcc and kernel sources so it can find /usr/src/linux/usr/gen_init_cpio.c for re-assembly.
 
Old 06-27-2020, 10:44 AM   #5
bw42
Member
 
Registered: Feb 2011
Distribution: Slackware
Posts: 65

Original Poster
Rep: Reputation: 51
Thank you Bifferos, that is very interesting. Will play with it.

I realized I somehow missed the installer source when I mirrored the Slackware64 source.
Which has the scripts I was looking for.

Nothing like causing yourself problems.
 
  


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
to initrd or not to initrd... svu Slackware 34 01-18-2023 02:09 AM
WHen I rebooted my laptop it is stuck at "initrd /boot/initrd.img Shadowmeph Linux - Newbie 2 03-07-2014 03:03 PM
How to create new initrd.gz (or initrd.img) file? kkpal Programming 2 12-10-2007 08:38 AM
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Installer reboot the system when loading initrd.img ieeestd802 Linux - Newbie 0 10-14-2004 12:01 AM

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

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