X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-laptop (unknown [79.160.13.130]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 15A52DC0175; Mon, 16 Mar 2015 21:19:00 +0000 (UTC) Date: Mon, 16 Mar 2015 22:18:58 +0100 From: Natanael Copa To: Olivier Mauras Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] Fw: [alpine-aports] [Patch] mkinitfs - Support for root_type and root_options Message-ID: <20150316221858.058b9c6c@ncopa-laptop> In-Reply-To: <1426537858.30008.0.camel@tiptop.internal> References: <20150316113651.52ba616b@ncopa-desktop.alpinelinux.org> <418ebc36905fc436a830d3d91870d204@core-hosting.net> <20150316161419.44a5f4a2@ncopa-desktop.alpinelinux.org> <20150316173947.GB13750@newbook> <20150316210825.12739794@ncopa-laptop> <1426537858.30008.0.camel@tiptop.internal> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) 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-Transfer-Encoding: 7bit On Mon, 16 Mar 2015 21:30:58 +0100 Olivier Mauras wrote: > > > On Mon, 2015-03-16 at 21:08 +0100, Natanael Copa wrote: > > On Mon, 16 Mar 2015 17:39:48 +0000 > > Isaac Dunham wrote: > > > > > 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' > > > > so, rootfstype and rootflags. I think we can use those instead of > > root_type and root_options? > > > > Thank you very much! > > > > > > > > [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 > > --- > > Want me to fix the patch with these ? Would be nice. thanks -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---