From owner-freebsd-current@FreeBSD.ORG Mon Jan 30 19:57:23 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2711106566B for ; Mon, 30 Jan 2012 19:57:23 +0000 (UTC) (envelope-from emaste@freebsd.org) Received: from mail1.sandvine.com (Mail1.sandvine.com [64.7.137.134]) by mx1.freebsd.org (Postfix) with ESMTP id 8DD5A8FC08 for ; Mon, 30 Jan 2012 19:57:23 +0000 (UTC) Received: from labgw2.phaedrus.sandvine.com (192.168.222.22) by WTL-EXCH-1.sandvine.com (192.168.196.31) with Microsoft SMTP Server id 14.1.339.1; Mon, 30 Jan 2012 14:57:22 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 10332) id A16EB33C02; Mon, 30 Jan 2012 14:57:22 -0500 (EST) Date: Mon, 30 Jan 2012 14:57:22 -0500 From: Ed Maste To: Message-ID: <20120130195721.GA14612@sandvine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: [patch] nextboot(8) arbitrary kernel environment X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 19:57:24 -0000 I have a patch to allow nextboot(8) to set arbitrary kernel environment variables (not just the kernel dir and kernel_options). The usage becomes: Usage: nextboot [-e variable=value] [-f] [-k kernel] [-o options] nextboot -D and the new option is documented as: -e variable=value This option adds the provided variable and value to the ker- nel environment. The value is quoted when written to the nextboot configuration. The patch also makes -k an option (no longer mandatory). The patch is at http://people.freebsd.org/~emaste/nextboot.diff . I'll commit it in a few days if no concerns are raised by review or my testing. -Ed