Cristian RodrC-guez wrote:
No, it is not just kernel modules.. in current incarnations with systemd/dracut the initrd is also used for clean shutdown, not just for system startup.
dracut wouldn't be needed for an initrd that has only kernel modules would it? What's on initrd that systemd would need that isn't on the hard disk? Er... wait a sec, you mean initrd isn't deallocated after boot? ? Do you mean to say that the large initrd's that people are complaining about stay around in memory AFTER boot just so systemd can use it to shut down? If the systemd project recommends getting rid of initd for efficiency & speed, I'm sure it wouldn't be too difficult for us to do so. FWIW... (from the do-acracy of linda): the static libc from musl is 2M 2.0M /usr/local/musl/lib/libc.a 4.0K /usr/local/musl/lib/libcrypt.a 588K /usr/local/musl/lib/libc.so* modprobe (the full prog, not cut down) in dynamic state has a size of: 60K modprobe* --- It loads modules the same as the full libc version. Right now it is still dynamically linked with the 'musl' libc -- but that's IT! It doesn't need anything else to run and load modules!... As soon as I put together a static build, we could have everything we need to boot besides the kernel and modules, taking < 5MB, less if we squeeze it.
objdump -p modprobe
modprobe: file format elf64-x86-64 .... Dynamic Section: NEEDED libc.so --- But that's it. And it looks like static linking shouldn't be a problem. (this was in hour or so's worth of work tonight --- building musl libc takes <20 seconds and it built, out-of-the-box w/no special configuration. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org