From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lloZe-0006B2-Nt for mharc-grub-devel@gnu.org; Wed, 26 May 2021 04:07:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lloZd-0006Aj-36 for grub-devel@gnu.org; Wed, 26 May 2021 04:07:29 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:46288) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lloZa-00011w-AM for grub-devel@gnu.org; Wed, 26 May 2021 04:07:28 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14Q85M7Q192264 for ; Wed, 26 May 2021 08:07:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2020-01-29; bh=9nBdZJVFD4cr7j1M3hBIdZ1RWWAvEblxUtxKrqyJ7mw=; b=c+fnVOV5JIMbpB6yzsb8iz01X24De7zVj9mNuYJ/XeQv8QvrtfiJ/sSkN9b7PtDfjSRO t5E+2Ad4CGb4CpNh2u+oBgdEaBbiTjWfr+ZR76o9Y8xwLSZQyVn/HpAhlZH7cKg34Vly n6kyswfpABN+He0Xzv0pnqNbzUWoJ7+kkphrWuynn0M+GJH1pg/4dz3qNOG23g+1Lwrl pvT2QLpkThoVgeC4yihHpiH7mnrzXgfZl8UpnB+FkWAbr7lpOrByo2xibOopYSwVaf6F Wkkk2BF90js6zwPR1JAx1LVCIHt0dRmTu7jM/39mfhgc6/xZPiHwH6yriBwSVCP/rWal JQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 38rne43s08-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 26 May 2021 08:07:20 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 14Q84xWX072001 for ; Wed, 26 May 2021 08:07:20 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by aserp3020.oracle.com with ESMTP id 38rehc93pv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 26 May 2021 08:07:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TlqlaBc1plEhzaflTrcRohQx8v4Nd4UNgAma8FPEXG/FSrZb8FqkZWQTLOUzGgZvthmQDMFOKJ45dKwCI82k5DF2E519tphMQD8azwEsd/jorMZvvQI7Gslwm1bLCthNxpCyGWJzWXt14SBuY5kTtRROgIlzTffG1ZrM4M2eGAiRAgj0Y2K4n07B8oW3dwWcI+X+zcVriQZeeIWYYhcg5p1tQ8wZkIH29e0PX81JAU7Fu1Ab0g6q72fpous4aX8fKQSGkZHuoYcVdTPfaY0aQMFJMe7IXWKs6ZIsD80sFNFxscnDdrfoNyRYoJix8guIOengPeXAaWi/nrZB9nG5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9nBdZJVFD4cr7j1M3hBIdZ1RWWAvEblxUtxKrqyJ7mw=; b=Zv8nVaOqDjzAeI96Nkz2q9ChJx3FFMCRYaOGIPIuWdUl3R+1Aztz/U2dJR5MBXsskjl+dE6Da70z/2pElcrZs6e/2l4XICAUs9qdbekSQliv5lOdAVgW1rccQdGmeX8nWbxaB0ITspjze7ODKwR4FIOE5orCo4rb/F3lY2+aE/kYpI+L3l0qvhrStyrYB+S99sEsbXfQ6eig9PMfs9JGT36niD09YBiWZ3RRjq1XpZNcC8VMjcenRrK4TJgJWK6bxZlsK189cxY6XIfu4YND15qUuzCdTYjLamg6tCPTKcUmcQyoTavqp60BNz+GCAZMHhTTTnm8HBK7co7HPJOjTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9nBdZJVFD4cr7j1M3hBIdZ1RWWAvEblxUtxKrqyJ7mw=; b=Ofiy7BEs9sNA/0PNyMeGhFU7iDuiGwIjuUhXQc+7N6vajfTSGReApa0GJV/2SQjFw7/SoBk1eU5YA7Rm8xLIFha3E+hOZ365CYptbPCYiP9Y7gVWmihgRLmMA5ip7KqN2XnhOCmGl+SNuoGP3lg43ZA8g/+kFaXIGf9ApTg/evc= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=oracle.com; Received: from BYAPR10MB2999.namprd10.prod.outlook.com (2603:10b6:a03:85::27) by SJ0PR10MB4559.namprd10.prod.outlook.com (2603:10b6:a03:2d0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.26; Wed, 26 May 2021 08:07:18 +0000 Received: from BYAPR10MB2999.namprd10.prod.outlook.com ([fe80::8111:d8f1:c262:808d]) by BYAPR10MB2999.namprd10.prod.outlook.com ([fe80::8111:d8f1:c262:808d%6]) with mapi id 15.20.4150.027; Wed, 26 May 2021 08:07:17 +0000 Date: Wed, 26 May 2021 04:07:14 -0400 From: Konrad Rzeszutek Wilk To: The development of GNU GRUB Subject: Re: RFC: A partition for grubenv, etc. Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Originating-IP: [130.44.160.152] X-ClientProxiedBy: MN2PR17CA0032.namprd17.prod.outlook.com (2603:10b6:208:15e::45) To BYAPR10MB2999.namprd10.prod.outlook.com (2603:10b6:a03:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 0xbeefdead.lan (130.44.160.152) by MN2PR17CA0032.namprd17.prod.outlook.com (2603:10b6:208:15e::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Wed, 26 May 2021 08:07:17 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d75b6480-c360-4cdd-009a-08d9201d477f X-MS-TrafficTypeDiagnostic: SJ0PR10MB4559: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fjHnHiYZTjTPc3gWdjkLg7J9gYlWrZJQOzH3tENVfVraRNt0DAP8t+8vaYnDhNq4hFyHtBUQBBW+HU6Wg+Tf8RIgCDWQqDtNPSfdl4uUyQn5MJV2zFCuFAxFpIzwHIIKT9bKzUd66SWm4bIgjz/+jWKFbCKVLIePdbwcBe5S0tGYtu7iOtWFzdqM6wD9fSABV3au88Luh0k7kBFV2pCVqszqZSL4LppW/0xAFil6TjLNyYlKOKTTUchZ0hhQa/WV/JuBt5SUEqN6Ks4noj9qxYwpJwdBIL+zzp8Nwb+BracDHyWbO6Yo0P/O7ydR8keV5BLL2fqSxg/CcSrr+y5EdYzSQegjP5685qR7z1C6K5Rbybgdf6A6F5Lg6EIvQlsQpnLbxYgu0YYcrdIuRHqDU7NyZyliLKYIs7EBJdmClyPFDLs9PIIv1AhuOx0/z4297W1C6ZrNhvrlCjsw3M8jujrD0SpiR5bCWGHF2OYxxd4Iux3chhlRdcl/Os7RCQ2jslwRkiU1KaYwJ5/lM5VyT3Qi00x4dNV7pKRTaPbRL0JiD9w7xDfHdb80at733d738zB/t/gDfv6by+m20FuMN4tiaeZU2cjb6qmo0bpahHHq9QRGLHdV9nbVJF6GNfG/Ecr+qknjRC4KqEz/RO/3lmlNDcbzvzc1krDyGxuH9rhESeizqFMeQZMkDBI+IY8e9J79CSaWvUKP5/C1k5tsutYwhS0ginkezNQv7YW65IkPSMrPnFpMjzj+tfpAGsHHoVhvhoNaEi7evpKFg5zXiQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR10MB2999.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(396003)(376002)(136003)(346002)(366004)(83380400001)(26005)(966005)(8936002)(5660300002)(55016002)(52116002)(66556008)(66946007)(2906002)(8676002)(66476007)(16526019)(7696005)(86362001)(6666004)(9686003)(186003)(6506007)(316002)(8886007)(38100700002)(38350700002)(6916009)(36756003)(956004)(478600001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?eV2o+V2US7O/OBCH2Pvj9HkiLxhTeWAEd2T01n6mfeoooD97SZ6HiS5O/V4R?= =?us-ascii?Q?VP7HXqzCmpIutspdY+vtbNOSkhqaEzJNCWisfZ/J9VRrvy0OnNETKcWmztah?= =?us-ascii?Q?FlkpV2wHrxKE0qtV2l3LBarMAI3fsNtBStWwzOv3f0H/FNtn0HDaFQrwWULj?= =?us-ascii?Q?o/PNzkirLc2CoVJXZSatZ3R3kSGng4PPv5tE8cnDIl7OGAMXPKZ4ZID343H5?= =?us-ascii?Q?nAj9oU9izutIauoiRPodv4ASn34s0infuyc5ON/np2TlE9TZ3KmORppHO8pg?= =?us-ascii?Q?ttev/PNwOOLxgxwZeqwq4AKnXctPvH8bSZIt2Tu2PsoK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LxInbe6GhiaH1tRWUs9TmYWBZQTxDTgNo1Jtl1YcUO4SHotEg4gy2gDN?= =?us-ascii?Q?9I3TACfdC9OYsScr/LyuWSKkE2Bm5ubsROS8EYrCUSCU7IofeB34pZ7aDSlb?= =?us-ascii?Q?06t9l694pXdZscqYkQo+5YVs?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d75b6480-c360-4cdd-009a-08d9201d477f X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB2999.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2021 08:07:17.8180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sjPVRTkZ1DHwwZxwvJch1vbAJM1bgcEDSYyy+nB0ErzoefxZqPlS1WyHk0m+Lglv5MwbnfjAA2ZgFDrwPgTRMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB4559 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9995 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 adultscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105260053 X-Proofpoint-ORIG-GUID: cPWLSeFv1Ow_3w5It3XYXx79xQi7VWsg X-Proofpoint-GUID: cPWLSeFv1Ow_3w5It3XYXx79xQi7VWsg X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9995 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 spamscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 adultscore=0 clxscore=1011 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2105260053 Received-SPF: pass client-ip=141.146.126.78; envelope-from=konrad.wilk@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_BL=0.001, RCVD_IN_MSPIKE_L3=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2021 08:07:29 -0000 On Tue, May 25, 2021 at 04:58:23PM -0600, Chris Murphy wrote: > Hi, > > It's not possible for GRUB pre-boot environment to write to grubenv > when it's on Btrfs, ZFS, LVM, mdadm raid, or LUKS. Also, at least XFS > upstream is super skeptical of anything except kernel code making any > kind of modification inside the file system region, and I suspect it's > the same concern with ext4 developers too. While there are file system > specific locations for bootloader usage, they're all different and > quite small. XFS has none. ext4 has 512 bytes. Btrfs has maybe 1 or 2 > MiB, ZFS (?), mdadm (?) and LVM (?). Aren't most distro setups using EFI which in effect means GRUB has to deal most of the time with FAT32 file system? Does that work? > > Proposal: A new partition type for MBR and GPT, functionally a > replacement for the BIOS Boot partition, but it would be a partition > owned by the bootloader for whatever it wants to use it for. It'd be > up to the bootloader to figure out how to segment it for bootloader > and environmental portions. We definitely need both MBR and GPT > partition types, it should be a partition exclusively reserved for the > bootloader. This effectively deprecates the use of the MBR gap, and > BIOS Boot partition types, and further it deprecates the use of file > systems (all of them, for consistency sake) for the use of grubenv. > > Variation: Keep BIOS Boot and repurpose it to include grubenv, while > also specifying an MBR type code for its equivalent. > > > Use case: For example, Fedora has a "hidden grub menu" feature where > by a variable in grubenv is reset (written to) by grub pre-boot. And > then a systemd unit changes that variable to indicate a successful > boot once some time and/or tests have been met. If grubenv indicates > successful boot, the next boot's grub menu is hidden. If it wasn't > successful the next boot's grub menu is displayed. It's only possible > to achieve this with some reliable bidirectional way of communicating > between the preboot and booted environments, which is the point of > grubenv, but it can't work much of the time due to the above > limitations. > > -- > Chris Murphy > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel