From owner-freebsd-hackers@freebsd.org Thu Dec 29 19:57:37 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDF6EC96CF5 for ; Thu, 29 Dec 2016 19:57:37 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B85813A8 for ; Thu, 29 Dec 2016 19:57:36 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 081ad895-ce01-11e6-9357-bffcd86bd944 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 081ad895-ce01-11e6-9357-bffcd86bd944; Thu, 29 Dec 2016 19:57:32 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id uBTJvO86001799; Thu, 29 Dec 2016 12:57:24 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1483041444.16152.57.camel@freebsd.org> Subject: Re: loader.conf from loader prompt From: Ian Lepore To: Allan Jude , freebsd-hackers@freebsd.org Date: Thu, 29 Dec 2016 12:57:24 -0700 In-Reply-To: <4e00321e-75bd-bec2-5d03-44aa0fb62298@freebsd.org> References: <20161229114324.GI37118@zxy.spb.ru> <1483022457.3851552.832172593.724798DE@webmail.messagingengine.com> <20161229145304.GK37118@zxy.spb.ru> <4e00321e-75bd-bec2-5d03-44aa0fb62298@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2016 19:57:37 -0000 On Thu, 2016-12-29 at 14:22 -0500, Allan Jude wrote: > On 2016-12-29 09:53, Slawa Olhovchenkov wrote: > > > > On Thu, Dec 29, 2016 at 08:40:57AM -0600, Mark Felder wrote: > > > > > > > > > > > > > > On Thu, Dec 29, 2016, at 05:43, Slawa Olhovchenkov wrote: > > > > > > > > I am need set/unset some values (from loader.conf) from loader > > > > prompt. > > > > Or add content of some file to loader.conf from loader prompt. > > > > Or interactivly enable/disable some lines from loader.conf > > > > > > > > Is this posible? > > > > > > > Yes. Check the loader(8) man page or the "help" command at the > > > loader > > > prompt. > > Already did, don't help. > > > > For example, what I need enter in loader prompt for next equalent: > > == > > mfsroot_load="YES" > > mfsroot_type="md_image" > > mfsroot_name="/boot/md.img" > > == > > > > set mfsroot_load="YES" > > set mfsroot_type="md_image" > > set mfsroot_name="/boot/md.img" > > boot > > > > don't work. > > > > `load -t md_image /boot/md.img` can't be before kernel load. > > > > What I am missing? > > > > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freeb > > sd.org" > > > To run loader commands from a file: > include /path/to/file > > To see what variables are already set: > show > > Read an additional/alternate loader.conf file: > read-conf /path/to/file > > I can't see any evidence that read-conf does anything.  If I name a nonexistant file it doesn't complain.  If I name an existing file that does load_uftdi=YES, then doing a show afterwards doesn't show that variable being set, and the module doesn't get loaded. Forth is so... 1973.  I wonder what ever happened to the project to use lua as the loader command language? -- Ian