Re: creating initramfs in fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Attachment: pgpHDpFf7auBW.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux