On 23.12.2014 09:30, Lars E. Pettersson wrote:
> On 12/22/14 23:56, poma wrote:
>> http://www.linuxfromscratch.org/~krejzi/kde5/postlfs/initramfs.html
>> "The only purpose of an initramfs is to mount the root filesystem."
> 
> Yes, that was my thinking also, and that the nouveau module had been put 
> there for a reason, but apparently not :)
> 
>> But in modern Linux distributions in the init-ram-fs-image are the giraffe, 
>> elephant and parrot, of course.
> 
> So it seems :)
> 
> Lars
> 


Size and content of the init-ram-fs-image varies in relation to the expected 
functionality, or to put it simply, depend on certain module ex/in-clusion, but 
not limited to.

man 8 dracut

# ll -h /boot/initramfs-$(uname -r).img | awk '{print $5}'
25M
# lsinitrd /boot/initramfs-$(uname -r).img | grep .ko | wc -l
415

# ll -h /boot/initramfs-$(uname -r).img | awk '{print $5}'
4.7M
# lsinitrd /boot/initramfs-$(uname -r).img | grep .ko | wc -l
1


Exemplary example - BIOS SATA_AHCI/MD-RAID1/EXT4 & S3/S4 (SUSPEND/HIBERNATE)

/etc/dracut.conf.d/local.conf
# PUT YOUR CONFIG IN files named *.conf in /etc/dracut.conf.d/
# /etc/dracut.conf.d/*.conf will override the settings in /etc/dracut.conf
# SEE man dracut.conf(5)

# Turn off all dracut modules unnecessary for local boot & system power sleep 
states
omit_dracutmodules+=" bash biosdevname btrfs busybox cms convertfs crypt 
crypt-gpg crypt-loop dasd dasd_mod dasd_rules debug dm dmraid dmsquash-live drm 
ecryptfs fstab-sys i18n img-lib lvm kernel-modules modsign multipath plymouth 
pollcdrom qemu rescue selinux shutdown syslog systemd systemd-bootchart 
terminfo url-lib usrmount virtfs watchdog zfcp zfcp_rules "

# Host-Only mode: Install only what is needed for booting the local host
# instead of a generic host and generate host-specific configuration.
# hostonly="{yes|no}"
hostonly="yes"

man 5 dracut.conf


Perhaps someone understand all this, but giraffe, elephant and parrot are 
awesome and understood by all. :)

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to