From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A5EE8138204 for ; Wed, 2 Oct 2013 12:43:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDEEEE0ADB; Wed, 2 Oct 2013 12:43:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38124E0AFB for ; Wed, 2 Oct 2013 12:43:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4837933E341 for ; Wed, 2 Oct 2013 12:43:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id ED672E5463 for ; Wed, 2 Oct 2013 12:43:34 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1377098453.02bee767c7de4d7357b4c9dd70912670e93a1497.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:ryao commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_bootloader.sh X-VCS-Directories: / X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: 02bee767c7de4d7357b4c9dd70912670e93a1497 X-VCS-Branch: ryao Date: Wed, 2 Oct 2013 12:43:34 +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-Archives-Salt: 4fe7cee2-9e03-405e-9b58-08841d4ddd9d X-Archives-Hash: 322199fe3c2c57ee45f29245f029096d commit: 02bee767c7de4d7357b4c9dd70912670e93a1497 Author: Richard Yao gentoo org> AuthorDate: Wed Aug 21 15:20:53 2013 +0000 Commit: Richard Yao gentoo org> CommitDate: Wed Aug 21 15:20:53 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=02bee767 Detect grub2-mkconfig failure Signed-off-by: Richard Yao gentoo.org> --- gen_bootloader.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_bootloader.sh b/gen_bootloader.sh index c695cea..b9ec14d 100755 --- a/gen_bootloader.sh +++ b/gen_bootloader.sh @@ -50,7 +50,7 @@ set_bootloader_grub2() { print_info 1 "You can customize Grub2 parameters in /etc/default/grub." print_info 1 "Running grub2-mkconfig to create ${GRUB_CONF}..." - grub2-mkconfig -o "${GRUB_CONF}" 2> /dev/null + grub2-mkconfig -o "${GRUB_CONF}" 2> /dev/null || gen_die "grub2-mkconfig failed" [ "${BUILD_RAMDISK}" -ne 0 ] && sed -i 's/ro single/ro debug/' "${GRUB_CONF}" }