Re: [PATCH] base: don't bother with rmmod/modprobe links for module-less initramfs

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

 



2010/10/10 Amadeusz ÅoÅnowski <aidecoe@xxxxxxxxxxxx>:
> Excerpts from Daniel Drake's message of Sun Oct 10 13:01:05 +0200 2010:
>> /bin/true is 23kb, bigger than rmmod itself!
>
> Yes, I knowâ ÂIt was supposed to be temporary workaround onlyâ :-)

What's the longer term solution?

> Hmâ you're right to some extent. Âudev seems not to complain about
> missing modprobe. ÂAlthough there are few usages of modprobe in some
> Dracut modules.

We could add an early hook (which only gets installed in the
ignore-kernel-modules case) which defines modprobe as a shell
function:

modprobe()
{
    return 0
}

Actually, this should be even simpler:

alias modprobe=true

(in this case, true is used an inbuilt shell command -- not the one in
/bin, which we won't need or use)

What do you think?

Daniel
--
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