From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oSfsU-0007Lu-6H for mharc-grub-devel@gnu.org; Mon, 29 Aug 2022 10:36:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSfsS-0007Im-Vc for grub-devel@gnu.org; Mon, 29 Aug 2022 10:36:36 -0400 Received: from smtp-out1.suse.de ([2001:67c:2178:6::1c]:44138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSfsR-0002CM-BS for grub-devel@gnu.org; Mon, 29 Aug 2022 10:36:36 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 641D533693; Mon, 29 Aug 2022 14:36:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661783792; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k+9YmH+1SX9N3AVNXlYJCBUBkH7XcypXp8vGzY6b9iw=; b=lKkZmJE4QeX30F3HbPDsi5WnX0+dPvgxoHiE7i/xrwRXts+0sON3nOeEMGUmhZVmHryDdK 94VhvcxMIdvvsF6PV08BCD9fEIWt4l5YaNsZlhewlMcoVobRSD+Hj5jIPakPNFiy4ob999 S8fjfducft728lOM5fwqWa9bcrbAIVg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661783792; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=k+9YmH+1SX9N3AVNXlYJCBUBkH7XcypXp8vGzY6b9iw=; b=4SaVI7Hb3DTQzoGxBGPy3hhLhw58XJxCiMK++AjH+IxsSfzzWUwEXmErdUE+UOM849qTmb P8A8pphiCP/hS+Bg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3A5B9133A6; Mon, 29 Aug 2022 14:36:32 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id rWKIC/DODGPqbwAAMHmgww (envelope-from ); Mon, 29 Aug 2022 14:36:32 +0000 From: Ismael Luceno To: grub-devel@gnu.org Cc: Ismael Luceno Subject: [PATCH v2 0/2] Fix installation issues on ppc64le Date: Mon, 29 Aug 2022 16:36:23 +0200 Message-Id: <20220829143625.23769-1-iluceno@suse.de> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:67c:2178:6::1c; envelope-from=iluceno@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2022 14:36:37 -0000 If the nvram device is non-functional, e.g. because the nvram module isn't loaded and it's file been removed from the filesystem, thus can't be loaded, the installation will be attempted but the system will be left in an unbootable state. The boot process shows: Welcome to GRUB! error: ../../grub-core/kern/dl.c:380:symbol `grub_disk_get_size' not found. Entering rescue mode... grub rescue> The patches in this series introduce a couple of points of no return before updating the nvram, and make sure /dev/nvram is functional or fail early. Ismael Luceno (2): grub-install: Add missing points of no return for IEEE1275 on i386/powerpc grub-install: Ensure a functional /dev/nvram util/grub-install.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) -- 2.37.1