From owner-freebsd-hackers@freebsd.org Thu Dec 29 19:18:18 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 8E2D8C96FF5 for ; Thu, 29 Dec 2016 19:18:18 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (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 732601B4C for ; Thu, 29 Dec 2016 19:18:18 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 6d1b3ee0-cdfb-11e6-8c89-112185c90658 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.ore.mailhop.org (Halon) with ESMTPSA id 6d1b3ee0-cdfb-11e6-8c89-112185c90658; Thu, 29 Dec 2016 19:17:23 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id uBTJH8S8001739; Thu, 29 Dec 2016 12:17:09 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1483039028.16152.54.camel@freebsd.org> Subject: Re: loader.conf from loader prompt From: Ian Lepore To: Slawa Olhovchenkov , Mark Felder Cc: freebsd-hackers@freebsd.org Date: Thu, 29 Dec 2016 12:17:08 -0700 In-Reply-To: <20161229145304.GK37118@zxy.spb.ru> References: <20161229114324.GI37118@zxy.spb.ru> <1483022457.3851552.832172593.724798DE@webmail.messagingengine.com> <20161229145304.GK37118@zxy.spb.ru> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit 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:18:18 -0000 On Thu, 2016-12-29 at 17:53 +0300, 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? > I don't know of an easy way to do this... it seems like it should be possible to make the forth interpreter read and act on another config file by entering some command at the prompt, but I see nothing about that in the docs, and I've never been able to read forth code. To do it the hard way, first do "load kernel" then do the "load -t md_image" as you show above, then you should be able to do "boot" and have it load any other foo_load=YES modules and start. -- Ian