From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 09 17:13:46 2018 Received: (at 30604) by debbugs.gnu.org; 9 Mar 2018 22:13:46 +0000 Received: from localhost ([127.0.0.1]:52876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euQGo-000345-Iu for submit@debbugs.gnu.org; Fri, 09 Mar 2018 17:13:46 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:49634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1euQGm-00033w-QN for 30604@debbugs.gnu.org; Fri, 09 Mar 2018 17:13:45 -0500 Received: from localhost (178.113.255.63.wireless.dyn.drei.com [178.113.255.63]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 2268033600C4; Fri, 9 Mar 2018 23:13:43 +0100 (CET) Date: Fri, 9 Mar 2018 23:13:20 +0100 From: Danny Milosavljevic To: ludo@gnu.org (Ludovic =?ISO-8859-1?Q?Court=E8s?=) Subject: Re: [bug#30604] [PATCH v8 3/7] linux-boot: Load kernel modules only when the hardware is present. Message-ID: <20180309231320.20a02822@scratchpost.org> In-Reply-To: <87muzgykcl.fsf@gnu.org> References: <20180302153408.14091-1-dannym@scratchpost.org> <20180303135533.6112-1-dannym@scratchpost.org> <20180303135533.6112-4-dannym@scratchpost.org> <87sh9g4vy1.fsf@gnu.org> <20180304133444.4edceecd@scratchpost.org> <87muzgykcl.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/GnqWfEzZKnoi.SFxFgthD/Z"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30604 Cc: 30604@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --Sig_/GnqWfEzZKnoi.SFxFgthD/Z Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, On Fri, 09 Mar 2018 23:06:50 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > When than happens, our modprobe gets called with the =E2=80=9Cnetdev-eth0= =E2=80=9D > alias, which it cannot handle, leading to this error. >=20 > By explicitly loading =E2=80=9Cvirtio_net=E2=80=9D and > sleeping a bit,=20 Uhhhhh no please don't. > point, but fail later on: ... > --8<---------------cut here---------------end--------------->8--- >=20 > Here the nls_iso8859-1 module doesn=E2=80=99t get loaded and modprobe isn= =E2=80=99t even > invoked, although my understanding is that it should (per =E2=80=98load_n= ls=E2=80=99 in > nls_base.c in the kernel, called from vfat/inode.c). >=20 > Similarly, it seems that virtio_blk has to be loaded explicitly: is not > reported by =E2=80=98needed-modules=E2=80=99 (i.e., not listed in /sys/= =E2=80=A6/modalias), nor > do we get a modprobe query for it. >=20 > All in all on-demand loading seems more complicated that it seemed. >=20 > What are we missing here? As I said, modprobe mutates /sys - you cannot use find-files. I haven't us= ed ftw just to be contrarian. There's even a warning comment :-) In order to find that out, try to print how /sys looked before modprobe - t= hen in the early guile recovery REPL print how /sys looks again - the alias it was juuust complaining about will be there just fine. My patch series works fine lazy-loading the IO charset, virtio_blk, virtio_= net. It took about 30 h to work out the correct minimal combination - just sayin= g :-) --Sig_/GnqWfEzZKnoi.SFxFgthD/Z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlqjBwAACgkQ5xo1VCww uqV8/Qf+J555Zoy+CZAq38ezF4hHwS5YbLy//BfK3/3lu2RwSu4h53vmvUqcFZrl vk+Y1Q7b7SJUmzUKCj/doQ+VgjJgpWlBia0PM0H0kNdKYrz4qbCH3KMDmyKKxlUS m0uMD7xiSef1evuBRttunzQIwv6zCUJn8kqyalkFQZ01lDXv7Mex0vpG/QkTTVJZ aTregruimbDWlMnNfUfN9aq5tKlvZfBrzysXGVpZDZlbZrUBkGkd4R8Skq4WdAwv OQcLkclyTwJOzEO7+ZCkw1b2uzKilS0K6kdoSAylcaXkc9wqjaV1feE9HrQkUHb3 OTPBJQScuFZ7VApDRwn6xCL/DfTvhg== =uf4c -----END PGP SIGNATURE----- --Sig_/GnqWfEzZKnoi.SFxFgthD/Z--