Cristian Rodríguez wrote:
El 28/06/13 04:03, Frederic Crozat escribió:
I strongly doubt systemd folks are advising to drop initrd at all..
There is an article about that in the systemd online docs, however it intended for setups where you have complete control of the target environment, not for generic general purpose distributions.
It was aimed at end users who wanted fast boot times. Now they have a tutorial on how to create a minimal initrd with mkinitcpio: Trim the fat With your module list ready to go, it’s time to tear apart mkinitcpio.conf. Since you’re explicitly finding and loading modules, you’re going to be very light on hooks. Based on the above, you could put together the following config: # # /etc/mkinitcpio.conf # MODULES="ahci sd_mod ext4" BINARIES="fsck fsck.ext4" HOOKS="base" And that’s it. We don’t need udev, since anything in the MODULES variable will be explicitly loaded. mkinitcpio is also kind enough to do dependency resolution for us. I still advise you to keep (or add?) fsck to your image, as checking your filesystem before it’s even mounted is greatly beneficial. I’ll leave it as an exercise to the reader to figure out additional modules for things like: usb keyboards or raid/lvm root devices. For your maiden voyage, I highly recommend creating a separate image in case you’ve forgotten something. # mkinitcpio -g /boot/initramfs-linux-tiny.img Either add another entry to your bootloader, or feel free to modify it on the fly at bootup. If this image isn’t sufficient and init won’t mount your root, go back through sysfs another time and check your work. Pick through the output of ‘mkinitcpio -M’ and check over what the modules do with ‘modinfo’. The description may not be very useful, but the path within the module directory can be very telling. That’s pretty much all there is to it. A little bit of understanding about your hardware and some familiarity with the common kernel modules can go a long way. ---- That's cutting it to the bone. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org