X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id C0CA7DC0939 for ; Mon, 16 Mar 2015 17:39:51 +0000 (UTC) Received: by pdnc3 with SMTP id c3so64162377pdn.0 for ; Mon, 16 Mar 2015 10:39:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=DUaPBELr/I+Lhcoh/F6SUYuKABEuCBccL1w+weXdGlw=; b=csLELJwMxA6lbpgc/O7A49JCvWp22tp6SvUryXYE1ab/Fm5RZEqyCzAfELISeba44h GF1iGK5VoCB0HgkxYTfW8svDbOQmTNh8/J9XNj1MAllwf5fZTMlzAxZaweZtbMjFeEPA v9hCOlGvpPrR28vxH6rYRnFU8Ln7BTRCA9sGDp05hawn1JOSyya13bq8roZHLXsszmP6 4c2fENdpr4DRCMPWekXURMw20fe9nHfblu6KN1OD0JFp47JoxZppPj//DBsgx33Db9s1 DREACvlxIl2W3zNikPJr04qvXZ21iTum5KDGMPeqxoapBzyXmtwXhrpqqOgzLkL8lZGb xyWw== X-Received: by 10.70.130.10 with SMTP id oa10mr110501185pdb.65.1426527590598; Mon, 16 Mar 2015 10:39:50 -0700 (PDT) Received: from newbook ([50.0.225.244]) by mx.google.com with ESMTPSA id hz8sm18363387pac.5.2015.03.16.10.39.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2015 10:39:50 -0700 (PDT) Date: Mon, 16 Mar 2015 17:39:48 +0000 From: Isaac Dunham To: Natanael Copa Cc: Olivier Mauras , alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Fw: [alpine-aports] [Patch] mkinitfs - Support for root_type and root_options Message-ID: <20150316173947.GB13750@newbook> References: <20150316113651.52ba616b@ncopa-desktop.alpinelinux.org> <418ebc36905fc436a830d3d91870d204@core-hosting.net> <20150316161419.44a5f4a2@ncopa-desktop.alpinelinux.org> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150316161419.44a5f4a2@ncopa-desktop.alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) On Mon, Mar 16, 2015 at 04:14:19PM +0100, Natanael Copa wrote: > On Mon, 16 Mar 2015 14:20:00 +0200 > Olivier Mauras wrote: > > > > > > > On 2015-03-16 12:36, Natanael Copa wrote: > > > > > I am forwarding a > > patch for mkinitfs from alpine-aports mailing list > > > for discussion. > > > > > > > > I agree that we want support mounting p9 as root file system from > > > initramfs. > > > > > > I would like to avoid to introduce 2 new boot options: > > root_type and > > > root_options. > > > > > > Questions: > > > > > > Can we implement this > > without introducing new boot options? > > > > > > If not, how does other > > distros handle this? Do they have other boot > > > options for it? > > FWIW, RHEL7 implements it > > in dracut with "root=virtfs:9p_name" > > ok, this is an option we should consider. > > > I just felt that having the options > > could be more useful - beyond 9p but i agree, is it needed ? - than > > hardcoding 9p support :) > > we have root_size for tmpfs root which would correspond to > root_options="-s ..." > > I agree it would be nice to avoid hardcoding every supported root type. > > anyone know what debian, ubuntu, arch and gentoo does for 9p as root? > > If the majority use root=virtfs:9p_name then we should maybe follow > that. Here's something about adding 9p support to an initramfs applicable to Debian, if I understand correctly [1]: Add the 9p modules to the host initramfs (that's the easiest way albeit not the cleanest, to have an initrd with the needed modules): printf '%s\n' 9p 9pnet 9pnet_virtio | sudo tee -a /etc/initramfs-tools/modules sudo update-initramfs -u qemu -kernel "/boot/vmlinuz-$(uname -r)" \ -initrd "/boot/initrd.img-$(uname -r)" \ -fsdev local,id=r,path=/,security_model=none \ -device virtio-9p-pci,fsdev=r,mount_tag=r \ -nographic \ -append 'root=r ro rootfstype=9p rootflags=trans=virtio console=ttyS0 init=/bin/sh' [1] http://unix.stackexchange.com/questions/90423/can-virtfs-9p-be-used-as-root-file-system --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---