Most efficient way to compute initramfs.img memory needs once uncompressed?

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

 



I'm desperately trying to find a good way to compute the memory required in terms of ramfs? 
This must work on all maintained distros that use dracut. (at least centos-6, fedora-25, ...) 

In other words, is there a simple/common way to compute the following command line parametters given an initramfs.img file? 
ramdisk_blocksize=1024 ramdisk_size=?????? 

- lsinitrd doesn't have this capacity 
- informations stored in the initramfs doesn't have this info 
- lsinitcpio has this capability but seems to be specific to archlinux. 

Regards, 

-- 
   Olivier LAHAYE
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux