How to make an init.img file

xiaoxiao2021-03-06  40

The initrd.img file is the memory mirror file used by Linux issued by Redhat, Mandrake. The image is a miniature system. When installing the system, expand the init.img to the memory. And run the RC installation script. In addition, the popular Live CD is now more popular, or the method of init.img can be used.

Understand the production and modification of the init.img file, you can use your own installation disc and a Live CD system.

First, unwrite init.img

gzip -cd /root/isolinux/isolinux/initrd.imge /tmp/initrd.ext2

mount -o loop /tmp/initrd.ext2 / mnt /

/ MNT / directory is the micro system in init.img

Second, generate initrd.img

Umount / MNT /

gzip -c9 /tmp/initrd.ext 3/root/isolinux/isolinux/initrd.img

转载请注明原文地址:https://www.9cbs.com/read-70901.html

New Post(0)