X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from smtp.core-hosting.net (ns1.core-hosting.net [95.130.13.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 99D3ADC0175 for ; Mon, 16 Mar 2015 20:31:17 +0000 (UTC) Received: from [10.60.60.2] (59.153.78.83.dynamic.wline.res.cust.swisscom.ch [83.78.153.59]) (using SSLv3 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.core-hosting.net (Postfix) with ESMTPSA id C1139AA12CF for ; Mon, 16 Mar 2015 21:31:15 +0100 (CET) Message-ID: <1426537858.30008.0.camel@tiptop.internal> Subject: Re: [alpine-devel] Fw: [alpine-aports] [Patch] mkinitfs - Support for root_type and root_options From: Olivier Mauras To: alpine-devel@lists.alpinelinux.org Date: Mon, 16 Mar 2015 21:30:58 +0100 In-Reply-To: <20150316210825.12739794@ncopa-laptop> References: <20150316113651.52ba616b@ncopa-desktop.alpinelinux.org> <418ebc36905fc436a830d3d91870d204@core-hosting.net> <20150316161419.44a5f4a2@ncopa-desktop.alpinelinux.org> <20150316173947.GB13750@newbook> <20150316210825.12739794@ncopa-laptop> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Mbs/0EYcw2NG9bi0yB5u" X-Mailer: Evolution 3.4.4 (3.4.4-2.fc17) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 --=-Mbs/0EYcw2NG9bi0yB5u Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2015-03-16 at 21:08 +0100, Natanael Copa wrote: > On Mon, 16 Mar 2015 17:39:48 +0000 > Isaac Dunham wrote: >=20 > > 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: > > >=20 > > > > =20 > > > >=20 > > > > On 2015-03-16 12:36, Natanael Copa wrote:=20 > > > >=20 > > > > > I am forwarding a > > > > patch for mkinitfs from alpine-aports mailing list > > > > > for discussion. > > > > > > > > >=20 > > > > > I agree that we want support mounting p9 as root file system from > > > > > initramfs. > > > > >=20 > > > > > I would like to avoid to introduce 2 new boot options: > > > > root_type and > > > > > root_options. > > > > >=20 > > > > > Questions: > > > > >=20 > > > > > Can we implement this > > > > without introducing new boot options? > > > > >=20 > > > > > If not, how does other > > > > distros handle this? Do they have other boot > > > > > options for it? > >=20 > > > > FWIW, RHEL7 implements it > > > > in dracut with "root=3Dvirtfs:9p_name" > > >=20 > > > ok, this is an option we should consider. > > >=20 > > > > I just felt that having the options > > > > could be more useful - beyond 9p but i agree, is it needed ? - than > > > > hardcoding 9p support :) > > >=20 > > > we have root_size for tmpfs root which would correspond to > > > root_options=3D"-s ..." > > >=20 > > > I agree it would be nice to avoid hardcoding every supported root typ= e. > > >=20 > > > anyone know what debian, ubuntu, arch and gentoo does for 9p as root? > > >=20 > > > If the majority use root=3Dvirtfs:9p_name then we should maybe follow > > > that. > >=20 > > Here's something about adding 9p support to an initramfs applicable to > > Debian, if I understand correctly [1]: > >=20 > > 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):=20 > > printf '%s\n' 9p 9pnet 9pnet_virtio | sudo tee -a /etc/initramfs-tools/= modules > > sudo update-initramfs -u=20 > >=20 > > qemu -kernel "/boot/vmlinuz-$(uname -r)" \ > > -initrd "/boot/initrd.img-$(uname -r)" \ > > -fsdev local,id=3Dr,path=3D/,security_model=3Dnone \ > > -device virtio-9p-pci,fsdev=3Dr,mount_tag=3Dr \ > > -nographic \ > > -append 'root=3Dr ro rootfstype=3D9p rootflags=3Dtrans=3Dvirtio cons= ole=3DttyS0 init=3D/bin/sh' >=20 > so, rootfstype and rootflags. I think we can use those instead of > root_type and root_options? >=20 > Thank you very much! >=20 > >=20 > > [1] http://unix.stackexchange.com/questions/90423/can-virtfs-9p-be-used= -as-root-file-system > >=20 > >=20 >=20 >=20 >=20 > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- Want me to fix the patch with these ? --=-Mbs/0EYcw2NG9bi0yB5u Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQIcBAABCgAGBQJVBz2CAAoJEJXQwVHPrdN8KgEP/1lwg5d+Pvvl17jey6ck0eFy wXNoUaix+ruSWQvCsJ/M8GzVvKecL1eqlPqlBhXvKMiuaAzyO5065maYHfykuUi8 bUNpuh4+USmOf7WdRw7Bbc+sT7eGWuka9w+8BrKjOqJPcPK+s8mrk9Sw0DNtpGsg OghbqvQlU3T+60JQFTb5WSm0nWo04Aiq8Ygzomg6FSv0/dO9fviC73jmjhgsBdi8 PmJOkIaXNjNlPLNnZGfnAwEpvhMFnE8paB7uMC1uQIx4ab3UjbVTo8roikJpO89p GAHSXcf78Qaqtz40F+wUZKRtLF6yb5/176fXe8jWcLE8u4lTnsLfyn/8JncWYcGf J2kLAEZcMgr/vqjKJ/3P68eSPOuNvp1wIY+1eLGhfQZqm7Snbjst2ArmBfC1ImjD Yyu65jcLz+dNlaqaQwxj5duHVGSPaS1mtkR9TFEXBe8rWot/89ypgIg2qEvXvQv5 Zn1r0ivoyErBbmf2kJlU1Vfo06kLk/nqySgDkFtsN7kC/uS7QvKE01JEdy3T7XrJ sPi9IBFC05ctUgnSgYreNM92el1k5RDwiAo9BCifUUOXs7n5u6OU3cSEsoHPc71W VkJ/YVoKUARtcRzTueWpHwNUc4XBDNGvvxZtP/FBvrPYlo/yUcpUFBp0GVtDRulF V2PBtj89tFBvPNwVi9Pm =lrMS -----END PGP SIGNATURE----- --=-Mbs/0EYcw2NG9bi0yB5u-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---