Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YzGeY-0000Pt-7g for mharc-grub-devel@gnu.org; Sun, 31 May 2015 23:44:42 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzGeV-0000PO-BA for grub-devel@gnu.org; Sun, 31 May 2015 23:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzGeS-0007Yp-4V for grub-devel@gnu.org; Sun, 31 May 2015 23:44:39 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:32921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzGeR-0007Ye-UB for grub-devel@gnu.org; Sun, 31 May 2015 23:44:36 -0400 Received: by wicmx19 with SMTP id mx19so58813031wic.0 for ; Sun, 31 May 2015 20:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=mcFDiLkJ+jQLjUONskzENXUl6AvXP/KzaOnD06PRHnI=; b=GQ29hjHiFcuNIFqNaRzTvqSGCjKRgN26rhZ3bLB6LXZf0iWH/L2e+JwfiA1uLG7ors 2div1qE7waoJXm4tnWrSdIzOqXTA0K77X8SoPriLrt2P80EG9FRKaiESw6a5u6IzTMtg W7UenPKQehogluYTtVJJcSHK1e/6xkkBLNyU664T9BWYolxrYhAHkS85tGWIIlFVrIA5 9QXFKb1/wfJNlGUl2vV6CykO2U23p4WVYAevdjOKHJVdFPQJdsEqW0Hp5C/OzlTSCgXm HxVuHLDQk23HMMO5AZreP1MCzK7JnNtweFZ5VtBt2BuE76BPConZmMf5yMV3hYqko6wS KG5Q== X-Received: by 10.194.110.100 with SMTP id hz4mr37603431wjb.6.1433130274686; Sun, 31 May 2015 20:44:34 -0700 (PDT) Received: from linux-dsax.tai.apac.novell.com ([203.192.156.9]) by mx.google.com with ESMTPSA id c3sm12864564wja.3.2015.05.31.20.44.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 31 May 2015 20:44:33 -0700 (PDT) Sender: =?UTF-8?B?5by15paH6I+v?= Date: Mon, 1 Jun 2015 11:35:49 +0800 From: Michael Chang To: The development of GNU GRUB Subject: Re: [RFC] Support menuentry options in simple configuration interface Message-ID: <20150601033549.GA7379@linux-dsax.tai.apac.novell.com> References: <1432626794-18469-1-git-send-email-mchang@suse.com> <20150530103906.60110e8c@opensuse.site> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150530103906.60110e8c@opensuse.site> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2015 03:44:40 -0000 On Sat, May 30, 2015 at 10:39:06AM +0300, Andrei Borzenkov wrote: > В Tue, 26 May 2015 15:53:14 +0800 > Michael Chang пишет: > > > This patch provides settings in simple configuration interface that can set > > common options to menuentry. One of the use cases is specifying the security > > settings thus it won't be overwritten by grub-mkconfig. For eg. > > > > GRUB_MENU_ENTRY_OPTION_LINUX="--unrestricted" > > GRUB_MENU_ENTRY_OPTION_OSPROBER="--users user1" > > > > I'm not sure. I actually feel like configurations that need detailed > per user authorizations simply do not fit into simplistic > grub-mkconfig. Next someone will miss per-menuentry user list. Thanks for comment. I'm also not sure as per menu entry options not fit well with global options context provided by simple interface. But from my understanding, generic options settings maybe more welcome from upstream POV, so that's why I send it here as RFC patch. :) > > Most common request is really to allow menu boot while restricting > command line, so I think that adding support for this to grub-mkconfig > would be fine. Yes. We have quite many users request the password protection to work the same way as legacy grub, that is actually what --unrestricted could provide them, but they need to manually patch grub scripts to keep their settings persist as currently distribution tools have no way to integrate it by lacking of inteface in simple config. We can extend that on our own, of course, but it seems better to coordinated on upstream if possible. How do you think proposed option like this ? GRUB_UNRESTRICTED_MENU_ENTRY="true" to have generated menu-entry with --unrestricted options set? > Otherwise something more detailed should really be left > to distribution specific tools or manual creation of grub.cfg. Agreed. Thanks, Michael > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel