[英]How do I get an initrd made out of a cpio archive loaded as the root device by grub2 in a distro-agnostic way?
[英]cpio is not working properly in repacking initrd.lz for live
如果我解压缩initrd.lz
,然后重新包装而不做任何更改,请用Live CD的Casper目录中的新initrd.lz替换它。 它是结构化的。 在打包initrd时,我收到如下警告消息:
cpio:./usr/share/plymouth/themes/text.plymouth:无法统计:没有这样的文件或目录。
最后,我的问题是,打包initrd.lz
压缩initrd.lz
的实用工具是什么?
谢谢。
提取initrd的内容:
mkdir temp
cd temp
lzma -dc -S .lz /mnt/casper/initrd.lz | cpio -id
修改并将其重新打包到新的initrd中:
find . | cpio --quiet --dereference -o -H newc | lzma -7 > ~/new-initrd.lz
对于text.plymouth,检查文件是否存在
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.