Bug 156847 - (quiet-)Modular mkinitrd patch
(quiet-)Modular mkinitrd patch
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
4
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
David Lawrence
: FutureFeature
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-04 13:26 EDT by Loris-Guillaume Minoia
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-03 17:41:37 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
my beta version (3.75 KB, patch)
2005-05-04 13:34 EDT, Loris-Guillaume Minoia
no flags Details | Diff

  None (edit)
Description Loris-Guillaume Minoia 2005-05-04 13:26:53 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1

Description of problem:
This patch (submited below) adds a little bit of modularity to mkinitrd that should make possible running custom commands in initrd stage (init or linuxrc) allowing :
  o mounting crypted root file system
  o network block device
  o set properties in /proc
  o running BIOS hack temporary hack (the ones that should be lauched at every boot)
  o ...

Version-Release number of selected component (if applicable):
mkinitrd (-4.2.9-1)

How reproducible:
Always

Steps to Reproduce:
a. apply the patch to mkinitrd extracted bz2-tarball (patch -p1 < patchfile) and install it
b. it should work like before

Additional info:

a. apply the patch to mkinitrd extracted bz2-tarball 'patch -p1 < patchfile' and install it
b. add scripts[1] to new directories /etc/mkinitrd/{pre,post}rootmount/
c. run 'mkinitrd [your args as usual]' should add your scripts and your files[3] to initrd

[1] sub-scripts written in nash (only command lines not the #!/bin/nash line). If you need more commands you can include files in the initrd, see [3]
[2] you cannot add comments in your sub-scripts :-(, but should be short scripts :-)
[3] if you put line begining with "#include " the end of the line is considered as a file to add in the initrd
Comment 1 Loris-Guillaume Minoia 2005-05-04 13:34:50 EDT
Created attachment 114033 [details]
my beta version

Try it if you find it useful, enjoy
Comment 2 Peter Jones 2006-02-03 17:41:37 EST
The current initrd images support modular functionality, albiet using a
different method than the one suggested here.

Note You need to log in before you can comment on or make changes to this bug.