X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from io.devever.net (io.devever.net [23.21.112.74]) by mail.alpinelinux.org (Postfix) with ESMTP id 0DCD0DC00B7 for ; Wed, 10 Apr 2013 04:27:08 +0000 (UTC) Message-ID: <5164EA14.2020807@devever.net> DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=devever.net; s=io; t=1365568025; bh=QSJofFRPavbx8CXrm8x+Ivdv50VZsqfj3xQOwH1fqvk=; h=Date:From:To:Subject:References:In-Reply-To; b=QVeRQ1o7JwC3eGhEJ9yErtRaWe7jQUcCmqJH6W3UEuFuo6qpP8pgFzm+hbaXOaAJt ajBsmb6uRwaZPZ6kwsOrYeNlOL0XgTUGZSlFdYCHs99ptOx6NyvNboNQhF6a0sg79V xj9g6of5+Pq6eCKI+cPmbvKOrud2KPQWsfvELtdo= Date: Wed, 10 Apr 2013 05:27:00 +0100 From: Hugo Landau User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] initrd and kernel-mode DHCP References: <515BC2F2.1050701@devever.net> <20130404172804.255b904a@ncopa-laptop.res.nor.wtbts.net> In-Reply-To: <20130404172804.255b904a@ncopa-laptop.res.nor.wtbts.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MISSING_MID autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on io.devever.net I now have a modified mkinitfs init script which can be used to PXE boot successfully to userspace using an HTTP server as the apk repository. The remaining difficulties are making modloop work, and getting overlays working (I haven't tested this yet). My understanding is mdev executes shell scripts on certain events, and many of these scripts call modprobe. Thus, the modloop filesystem needs to be available perpetually after booting. modprobe, etc. aren't exactly suited to loading modules over HTTP; some way of doing this could probably be found but it would be quite against the flow of the system. This leaves a few possibilities, such as downloading a squashfs image into memory, which isn't too great, or using NFS, which is better. I'd like to split the "alpine_dev" argument into "alpine_dev" and "alpine_repo". alpine_dev would, as now, specify a filesystem (optionally NFS), for use by things that require a filesystem interface (modprobe). alpine_repo would specify a line for /etc/apk/repositories. These are quite different functions and should probably be untied. Compatibility can be preserved by ensuring that alpine_dev is processed as it currently (search for .boot_repository on alpine_dev) if alpine_repo is omitted - this has the side effect of allowing NFS to be used for apk as well. ovl_dev could specify an HTTP URL for an apkovl file or a device as usual. As an example, a PXE-booting system would have a command line of something like: alpine_dev=nfs:IP:EXPORT alpine_repo=http://nl.alpinelinux.org/... ovl_dev=http://.../foo.apkovl.tar.gz No pre-existing command line would be adversely affected. After this is all done the only remaining obstacle should be some slight changes to the modloop init script to make it understand NFS alpine_dev. Hugo Landau --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---