From: Richard Yao Date: Tue, 24 Apr 2012 05:52:08 +0000 (-0400) Subject: Make --bootloader=grub2 set debug instead of single in grub.cfg X-Git-Tag: v3.4.31~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18c0dbc872052e37cd8df6862810623d170d3d62;p=genkernel.git Make --bootloader=grub2 set debug instead of single in grub.cfg --- diff --git a/gen_bootloader.sh b/gen_bootloader.sh index f0273db..5b73d97 100755 --- a/gen_bootloader.sh +++ b/gen_bootloader.sh @@ -51,6 +51,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}" + [ "${BUILD_RAMDISK}" -ne 0 ] && sed -i 's/ro single/ro debug/' "${GRUB_CONF}" } set_bootloader_grub() {