From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Sun, 24 Mar 2013 13:28:53 -0400 Subject: initramfs.cpio In-Reply-To: Your message of "Sun, 24 Mar 2013 16:27:27 +0800." <20130324082727.GA9248@debian.localdomain> References: <20130324082727.GA9248@debian.localdomain> Message-ID: <187890.1364146133@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sun, 24 Mar 2013 16:27:27 +0800, ishare said: > > Hi : > I find that my initramfs_data.cpio generated by gcc does not contain init files ,which should be > executed by terminal initialization. > > My initramfs_data.cpio only contains these : /dev /dev/consol /root . > > where to search the init file? You want to use mkinitramfs or mkinird or dracut or whatever your distro calls it to create one. gcc has no *clue* what needs to go in the initramfs (for example, if your root file system is on a LVM partition on a LUKS-encrypted disk, the initramfs has to do a 'cryptsetup openLuks' and then an 'lvm varyon' before the mount will succeed). Plus any modprobes that may or may not be needed, etc etc etc. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 865 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130324/96b93526/attachment.bin