unixwz0r

how to edit initrd.img and to remake the initrd.img

Feb 10th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. bash-3.1# mkdir cpiowork
  2. bash-3.1# cd cpiowork
  3. bash-3.1# gzip -dc ../initrd.img | cpio -i -d -H newc --no-absolute-filenames
  4. 43980 blocks
  5. bash-3.1# cd usr/lib/setup
  6. bash-3.1# ls
  7. FDhelp INSdir SeTfdHELP SeTnet migrate.sh unmigrate.sh
  8. INCISO INShd SeTfull SeTnopart nopartHELP
  9. INSCD PROMPThelp SeTkernel SeTpartitions pkgtool
  10. INSNFS SeTDOS SeTkeymap SeTpasswd removepkg
  11. INSSMB SeTPKG SeTmaketag SeTswap setup
  12. INSURL SeTconfig SeTmedia installpkg slackinstall
  13.  
  14. The scripts of interest here are setup and slackinstall.
  15.  
  16. After making any necessary modifications to your working copy, you need to reverse the gzip/cpio steps to rebuild initrd.img:
  17.  
  18. bash-3.1# cd ../../..
  19. bash-3.1# find . -print | cpio -o -H newc | gzip -9 > ../initrd.img
  20. 23919 blocks
Advertisement
Add Comment
Please, Sign In to add comment