From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Fri, 11 Mar 2016 19:57:47 -0500 Subject: creating initramfs in fedora In-Reply-To: References: Message-ID: <112784.1457744267@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, 11 Mar 2016 18:32:39 +0530, Ronit Halder said: > How can I create a initramfs file without dracut from the files in an > installed system in fedora? If you're hell-bent on doing something unsupported, remember that dracut is just an easily understood python script, so you can just follow along and do just the parts your use case needs. But before going to that length, check whether you can use already-existing dracut options to get what you want. For instance, I use this for initramfs on my laptop: /usr/bin/dracut --xz -f -H --no-kernel -o "busybox qemu btrfs resume kernel-modules dmraid multipath" /boot/initramfs-${rel}.img ${rel} which means ".xz compress it, overwrite the .img if needed, only build in support for this laptop, don't include kernel modules (all the ones needed to get the rootfs mounted are =y in the config), leave out support for dracut modules I listed". And that's only the start of what you can do to customize what it does. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 848 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160311/1f602a83/attachment.bin