extract initrd.img and prepare again
gunzip < /boot/initrd.img | cpio -i --make-directories
after makeing changes to files you can create new initrd.img as
bellow
find ./ | cpio -H newc -o > initrd.cpio
gzip initrd.cpio
mv initrd.cpio.gz initrd.img
--------------------------------------
follow tree structure 
linux/ 
  `-- suse/ 
       `-- i386-9.1/
           `-- dud.config         # >= SL 9.0
    |-- install/
           |    `-- update.pre
    |     -- update.tar.gz
    |     -- update.post
    |     -- update.post2  # >= SL 9.0
    |     -- foo.rpm       # >= SL 9.1
    |     -- bar.rpm       # >= SL 9.1
    |-- modules/
    |    `-- module.order # >= SLES9 SP1
    |    `-- module1.ko
    |    `-- module2.ko
    |    `...
    `-- inst-sys/          # >= SLES9 SP1
         `-- foo
 
No comments:
Post a Comment