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 CEC75138F88 for ; Thu, 27 Feb 2014 04:47:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7EA6FE0A8C; Thu, 27 Feb 2014 04:47:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A78DBE0A81 for ; Thu, 27 Feb 2014 04:47:08 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D1EAC33FDC7 for ; Thu, 27 Feb 2014 04:47:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id AD4A2188EA for ; Thu, 27 Feb 2014 04:47:05 +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: <1393475320.d6cd840c05a8aa5f4131027ff76aff00d9fc23d2.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:master 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: d6cd840c05a8aa5f4131027ff76aff00d9fc23d2 X-VCS-Branch: master Date: Thu, 27 Feb 2014 04:47:05 +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: e5f2cd05-6bb2-40e6-b741-bfeadec6e050 X-Archives-Hash: 88364133ade2e0e1a616bb1af3d092b0 commit: d6cd840c05a8aa5f4131027ff76aff00d9fc23d2 Author: Richard Yao gentoo org> AuthorDate: Wed Aug 21 15:20:53 2013 +0000 Commit: Richard Yao gentoo org> CommitDate: Thu Feb 27 04:28:40 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=d6cd840c 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}" }