Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oVBOs-0007S1-DR for mharc-grub-devel@gnu.org; Mon, 05 Sep 2022 08:40:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVBOd-0007Nb-Fd for grub-devel@gnu.org; Mon, 05 Sep 2022 08:40:12 -0400 Received: from smtp-out2.suse.de ([2001:67c:2178:6::1d]:55672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVBON-0006HW-G4 for grub-devel@gnu.org; Mon, 05 Sep 2022 08:40:02 -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-out2.suse.de (Postfix) with ESMTPS id D905B5FD89; Mon, 5 Sep 2022 12:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662381592; 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=YHFIpyxRbLnHowqVQfbhgI0iv6tAAVcqfFlKfxoMWts=; b=h9X/+/PQSQAUG22Y/q0veD80HmlhU6hvR0aA0OONDaBE8MDTgcHDpN8+yeKBf4bdLbxQiR sKA35+IJgVXI1+1nwuK4w/5JZji8ztiygminSZWvlp93+f62IkgFa9dpnTrBofXR+2ZzWz hvqVgS8ps0n2L+qM6DB8/jTS8g6ARZQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662381592; 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=YHFIpyxRbLnHowqVQfbhgI0iv6tAAVcqfFlKfxoMWts=; b=fxo9PfxKSmXqV7VZjnw1wGA8khLRcDmlp/owZWLwf/vSFBYPH01uEtOtJRl4AwA5qRXl/O r6JS0aiyIrHKGHBQ== 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 BBF3B13A66; Mon, 5 Sep 2022 12:39:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aHkXKxjuFWPHCAAAMHmgww (envelope-from ); Mon, 05 Sep 2022 12:39:52 +0000 From: Ismael Luceno To: grub-devel@gnu.org Cc: Michael Chang , Ismael Luceno Subject: [PATCH v3 0/2] Fix installation issues on ppc64le Date: Mon, 5 Sep 2022 14:39:45 +0200 Message-Id: <20220905123947.18468-1-iluceno@suse.de> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:67c:2178:6::1d; envelope-from=iluceno@suse.de; helo=smtp-out2.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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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, 05 Sep 2022 12:40:13 -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> Introduce a point of no return after embedding grub in the PReP partition, and make sure /dev/nvram is functional or fail early. Ismael Luceno (2): grub-install: Ensure a functional /dev/nvram grub-install: Add point of no return for IEEE1275 on powerpc util/grub-install.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Changes since v2: * Removed point of no return for i386 * Check for update_nvram before opening /dev/nvarm Changes since v1: * Check /dev/nvram early * Removed loading of the nvram module * Added points of no return -- 2.37.3