From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA94A138334 for ; Fri, 21 Dec 2018 14:15:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FE40E0C4A; Fri, 21 Dec 2018 14:14:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73E21E0C4A for ; Fri, 21 Dec 2018 14:14:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B854C335C77 for ; Fri, 21 Dec 2018 14:14:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB5AD4D7 for ; Fri, 21 Dec 2018 14:14:43 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1545401623.e8ecf2afe4e580cb6b67902018cf1b297d59e59a.bkohler@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/ X-VCS-Repository: proj/catalyst X-VCS-Files: targets/support/functions.sh X-VCS-Directories: targets/support/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: e8ecf2afe4e580cb6b67902018cf1b297d59e59a X-VCS-Branch: master Date: Fri, 21 Dec 2018 14:14:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8daaa746-83d9-4150-9813-6c25f2908542 X-Archives-Hash: aeaf0f5cb01dff891b68d688e0268369 commit: e8ecf2afe4e580cb6b67902018cf1b297d59e59a Author: Ben Kohler gentoo org> AuthorDate: Fri Dec 21 14:13:43 2018 +0000 Commit: Ben Kohler gentoo org> CommitDate: Fri Dec 21 14:13:43 2018 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e8ecf2af functions.sh: load part_gpt & part_msdos in our grub-stub.cfg Loading part_gpt & part_msdos in our grub config will allow our image to boot from partitioned devices (such as those created by rufus or unetbootin). Signed-off-by: Ben Kohler gentoo.org> targets/support/functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/targets/support/functions.sh b/targets/support/functions.sh index ce43abba..54455210 100755 --- a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ -103,7 +103,9 @@ create_bootloader() { fi #create grub-stub.cfg for embedding in grub-mkstandalone - echo "search --no-floppy --set=root --file /livecd" > grub-stub.cfg + echo "insmod part_gpt" > grub-stub.cfg + echo "insmod part_msdos" >> grub-stub.cfg + echo "search --no-floppy --set=root --file /livecd" >> grub-stub.cfg echo "configfile /grub/grub.cfg" >> grub-stub.cfg # some 64 bit machines have 32 bit UEFI, and you might want to boot 32 bit on a 64 bit machine, so we take the safest path and include both