creating initramfs in fedora
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Fri Mar 11 19:57:47 EST 2016
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
More information about the Kernelnewbies
mailing list