need help in understanding dracut --install flag

General support questions
Post Reply
nupurpriya
Posts: 86
Joined: 2016/10/14 12:07:18

need help in understanding dracut --install flag

Post by nupurpriya » 2019/09/23 09:57:28

Hi All,

I have been trying different flags to create the initramfs. Can someone explain me how --install part works. Man page says :

-I, --install LIST
install the space separated list of files into the initramfs.

What does this actually mean,and what is its use ? How does it impact the size of initramfs?
Please point me to any document which explains this.

hunter86_bg
Posts: 2018
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: need help in understanding dracut --install flag

Post by hunter86_bg » 2019/09/23 12:51:57

Most propably it means that you can give your own list of files and they will ve in your initramfs.

Actually, what are you trying to achive with dracut ?

nupurpriya
Posts: 86
Joined: 2016/10/14 12:07:18

Re: need help in understanding dracut --install flag

Post by nupurpriya » 2019/09/24 05:54:56

Thanks for replying,

I am creating new initramfs. When using --install flag, size is increasing, so trying to understand what exactly --instal is doing to increase the size. I am just following a random doc for creating the initramfs, and not really sure, what the command is doing. number of modules that is going into the initramfs is exactly the same. So what is changing the size?
/usr/sbin/dracut vv --force --install 'blkid /lib64/so' /boot/initramfs`uname -r`.img `uname -r` ->image size is 56M
/usr/sbin/dracut vv --force /boot/initramfs`uname -r`.img `uname -r` ->image size is 18M

Post Reply

Return to “CentOS 7 - General Support”