0

If I unpack initrd.lz and then repack it without making any changes, then replace it with my new initrd.lz in Casper directory for live CD. It is structed. While packing of initrd I got a warning message as below:

cpio: ./usr/share/plymouth/themes/text.plymouth: Cannot stat: No such file or directory.

Finally my question is, what is the utility to pack and unpack the initrd.lz?

Thanks.

yacc
  • 2,915
  • 4
  • 19
  • 33
rammohan
  • 11
  • 1
  • 5

1 Answers1

1

Extract the contents of the initrd:

  mkdir temp
  cd temp
  lzma -dc -S .lz /mnt/casper/initrd.lz | cpio -id

Modify and Repack them into a new initrd:

  find . | cpio --quiet --dereference -o -H newc | lzma -7 > ~/new-initrd.lz

and for the text.plymouth check if the file is present

xeon zolt
  • 196
  • 3
  • 18
  • Thanks for giving suggestion, text.plymouth and default.plumouth is not present after repacking of initrd.lz. Suggest me what i need to do now? – rammohan Nov 20 '17 at 06:10
  • I have added my Plymouth theme here temp/usr/share/plymouth/themes and if you don't add them you will get a warning but it will work – xeon zolt Nov 20 '17 at 09:19
  • 1
    Dear @xeon zolt this above procedure is working good on `ubuntu-14.04` but not `ubuntu-16.04`. in `16.04` got error like **udevadm:error while loading shared libraries libcgmanager.so.0 :cannot open shared object file :no such file or directory**, then could not find the installation files/custom.This could also happen if the file system is not clean because of an system crash,an interrupted boot process. Thanks, – rammohan Nov 21 '17 at 07:19