我需要从initrd.img文件创建initrd.lz文件。我该怎么做?
发布于 2012-03-17 00:21:22
遗憾的是,我的博客被关闭了,但从我的内部拷贝来看,HTH:
如何编辑RAM磁盘映像
我真的想读更多关于纳什/lvm的东西是如何在我的服务器上工作的.
编辑漫游盘(initrds)
以下是使您能够编辑ramdisk以进行任何更改的步骤:
gunzip -c /boot/initrd-.img >initrd.img
mkdir tmpDir
mount -o loop initrd.img tmpDir/
cd tmpDir
# Make all necessary changes (copy over modules, edit linuxrc etc)
umount tmpDir
gzip -9c initrd.img >/boot/initrd-.img (从http://openssi.org/cgi-bin/view?page=docs2/1.2/README.edit-ramdisk窃取)
后续行动
在某种程度上,他们不再让ISO回送,现在他们只是一个压缩的cpio存档:
mkdir initrd
cd initrd/
gzip -dc /boot/initrd-2.6.23-0.104.rc3.fc8.img | cpio -idcpio是“新”格式,所以在重新压缩时,您需要使用--format='newc'。
(从http://fedoraproject.org/wiki/KernelCommonProblems窃取)
https://unix.stackexchange.com/questions/34372
复制相似问题