Return-path: Received: from mail-yw0-f46.google.com ([209.85.213.46]:41090 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753729Ab2GSKql (ORCPT ); Thu, 19 Jul 2012 06:46:41 -0400 Received: by yhmm54 with SMTP id m54so2582445yhm.19 for ; Thu, 19 Jul 2012 03:46:41 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1326716209.3510.7.camel@jlt3.sipsolutions.net> References: <1326621743.3448.1.camel@jlt3.sipsolutions.net> <1326704259.3510.3.camel@jlt3.sipsolutions.net> <1326716209.3510.7.camel@jlt3.sipsolutions.net> From: Kay Sievers Date: Thu, 19 Jul 2012 12:46:20 +0200 Message-ID: (sfid-20120719_124658_617881_3CD81972) Subject: Re: calling request_firmware() from module init will not work with recent/future udev versions To: Johannes Berg Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org, Tom Gundersen , Andy Whitcroft Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Jan 16, 2012 at 1:16 PM, Johannes Berg wrote: > On Mon, 2012-01-16 at 13:05 +0100, Kay Sievers wrote: > >> > What I'm was asking then is this: Can udev know that it is running from >> > initramfs (presumably that can't be too hard) and simply not reply to >> > async requests it doesn't have firmware for? Then once the real root is >> > mounted it could satisfy (or not) firmware requests from the real root. >> >> We can surely change it to not cancel the firmware request. >> >> Either by making it aware that we run from initramfs, or by never >> cancelling any firmware request and just leave it hanging around for >> forever? Never say 6 months is a long time to reply. :) Fedora uses systemd in the initramfs now, which made it trivial to implement this, and to leave the firmware requests hanging around until we reach in the real rootfs and know if the firmware file is available: http://cgit.freedesktop.org/systemd/systemd/commit/?id=39177382a4f92a834b568d6ae5d750eb2a5a86f9 The logic to tell udev that it runs in the initramfs could easily be implemented by other initramfs tools than dracut, but they usually do not really follow what we do here, so this might for now only work on recent systems using dracut. Cheers, Kay