Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 577E7C32751 for ; Wed, 31 Jul 2019 15:13:19 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2673420693 for ; Wed, 31 Jul 2019 15:13:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crc.id.au header.i=@crc.id.au header.b="X9Bd3vr+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2673420693 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=crc.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsqHc-0004fi-Qq; Wed, 31 Jul 2019 15:12:52 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hsqHb-0004fd-Pb for xen-devel@lists.xenproject.org; Wed, 31 Jul 2019 15:12:51 +0000 X-Inumbo-ID: a831fa2c-b3a5-11e9-8980-bc764e045a96 Received: from mail.crc.id.au (unknown [203.56.246.92]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id a831fa2c-b3a5-11e9-8980-bc764e045a96; Wed, 31 Jul 2019 15:12:50 +0000 (UTC) Received: from wopr.lan.crc.id.au (unknown [IPv6:2407:e400:b000:200:2c4d:29ad:9a5d:b54f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.crc.id.au (Postfix) with ESMTPSA id C29112000A0 for ; Thu, 1 Aug 2019 00:54:13 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crc.id.au; s=default; t=1564584853; bh=TF57/+CpjaWUF/E8gaGsGqfFQzdDBCiHX4O4Tb6bS1Y=; h=Date:From:Subject:To; b=X9Bd3vr+1YlNP8SCZirjTp+YHxS0mC9DlS85/5c3QKoy3aEE5aaO3lia+AFL16GLN ka+Wd9b7H6+iAbPlU74Bj8o9I99+gyACKoQ0Zz9EZ8kSZhbqfBmj7WQxqRg96aaXML EK+EeKEywTfZ6x43Mt3W1Zn+O3YcTxARieXaMDpY= Date: Thu, 01 Aug 2019 00:54:34 +1000 From: Steven Haigh To: xen-devel@lists.xenproject.org Message-Id: <1564584874.5750.0@crc.id.au> X-Mailer: geary/3.32.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-6uvEBoQfkqtxkeUJvlL8" Subject: [Xen-devel] Fedora 30 DomU - pygrub always boots the second menu option X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" --=-6uvEBoQfkqtxkeUJvlL8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable There's a ton of changes to grub in Fedora 30.... Most of them causing=20 pain. When booting using pygrub, the presented menu always has the second=20 option selected. The contents of /etc/default/grub is as follows: GRUB_TIMEOUT=3D1 GRUB_DEFAULT=3D0 GRUB_DISABLE_SUBMENU=3Dtrue GRUB_TERMINAL_OUTPUT=3D"console" GRUB_CMDLINE_LINUX=3D"audit=3D0 selinux=3D0 console=3Dhvc0" GRUB_DISABLE_RECOVERY=3D"true" GRUB_ENABLE_BLSCFG=3Dfalse I have attached the generated grub.cfg created via: grub2-mkconfig -o /boot/grub/grub.cfg BLSCFG is a whole new clusterf**k of problems that became default in=20 Fedora 30 that cause many problems - but first things first... Steven Haigh =F0=9F=93=A7 netwiz@crc.id.au =F0=9F=92=BB https://www.crc.id.au =F0=9F=93=9E +613 9001 6090 =F0=9F=93=B1 +614 1293 5897 = --=-6uvEBoQfkqtxkeUJvlL8 Content-Type: text/plain Content-Disposition: attachment; filename=grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### set pager=1 if [ -f ${config_directory}/grubenv ]; then load_env -f ${config_directory}/grubenv elif [ -s $prefix/grubenv ]; then load_env fi if [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=true else set default="0" fi if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } terminal_output console if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=1 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=1 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/01_users ### if [ -f ${prefix}/user.cfg ]; then source ${prefix}/user.cfg if [ -n "${GRUB2_PASSWORD}" ]; then set superusers="root" export superusers password_pbkdf2 root ${GRUB2_PASSWORD} fi fi ### END /etc/grub.d/01_users ### ### BEGIN /etc/grub.d/08_fallback_counting ### insmod increment # Check if boot_counter exists and boot_success=0 to activate this behaviour. if [ -n "${boot_counter}" -a "${boot_success}" = "0" ]; then # if countdown has ended, choose to boot rollback deployment, # i.e. default=1 on OSTree-based systems. if [ "${boot_counter}" = "0" -o "${boot_counter}" = "-1" ]; then set default=1 set boot_counter=-1 # otherwise decrement boot_counter else decrement boot_counter fi save_env boot_counter fi ### END /etc/grub.d/08_fallback_counting ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Fedora (5.1.20-300.fc30.x86_64) 30 (Thirty)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.1.20-300.fc30.x86_64-advanced-e2f94071-1c3b-4b45-b6fb-22e3f952d4ae' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae else search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae fi linux /boot/vmlinuz-5.1.20-300.fc30.x86_64 root=UUID=e2f94071-1c3b-4b45-b6fb-22e3f952d4ae ro audit=0 selinux=0 console=hvc0 initrd /boot/initramfs-5.1.20-300.fc30.x86_64.img } menuentry 'Fedora (5.1.18-300.fc30.x86_64) 30 (Thirty)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-5.1.18-300.fc30.x86_64-advanced-e2f94071-1c3b-4b45-b6fb-22e3f952d4ae' { load_video set gfxpayload=keep insmod gzio insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae else search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae fi linux /boot/vmlinuz-5.1.18-300.fc30.x86_64 root=UUID=e2f94071-1c3b-4b45-b6fb-22e3f952d4ae ro audit=0 selinux=0 console=hvc0 initrd /boot/initramfs-5.1.18-300.fc30.x86_64.img } menuentry 'Fedora (0-rescue-46e72612de204d5d8d6a9fe68e255ba3) 30 (Thirty)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-46e72612de204d5d8d6a9fe68e255ba3-advanced-e2f94071-1c3b-4b45-b6fb-22e3f952d4ae' { load_video insmod gzio insmod part_msdos insmod ext2 if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae else search --no-floppy --fs-uuid --set=root e2f94071-1c3b-4b45-b6fb-22e3f952d4ae fi linux /boot/vmlinuz-0-rescue-46e72612de204d5d8d6a9fe68e255ba3 root=UUID=e2f94071-1c3b-4b45-b6fb-22e3f952d4ae ro audit=0 selinux=0 console=hvc0 initrd /boot/initramfs-0-rescue-46e72612de204d5d8d6a9fe68e255ba3.img } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/10_reset_boot_success ### insmod increment # Hiding the menu is ok if last boot was ok or if this is a first boot attempt to boot the entry if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then set menu_hide_ok=1 else set menu_hide_ok=0 fi # Reset boot_indeterminate after a successful boot, increment otherwise if [ "${boot_success}" = "1" ] ; then set boot_indeterminate=0 else increment boot_indeterminate fi # Reset boot_success for current boot set boot_success=0 save_env boot_success boot_indeterminate ### END /etc/grub.d/10_reset_boot_success ### ### BEGIN /etc/grub.d/12_menu_auto_hide ### if [ x$feature_timeout_style = xy ] ; then if [ "${menu_show_once}" ]; then unset menu_show_once save_env menu_show_once set timeout_style=menu set timeout=60 elif [ "${menu_auto_hide}" -a "${menu_hide_ok}" = "1" ]; then set orig_timeout_style=${timeout_style} set orig_timeout=${timeout} if [ "${fastboot}" = "1" ]; then # timeout_style=menu + timeout=0 avoids the countdown code keypress check set timeout_style=menu set timeout=0 else set timeout_style=hidden set timeout=1 fi fi fi ### END /etc/grub.d/12_menu_auto_hide ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/20_ppc_terminfo ### ### END /etc/grub.d/20_ppc_terminfo ### ### BEGIN /etc/grub.d/30_os-prober ### ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### --=-6uvEBoQfkqtxkeUJvlL8 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --=-6uvEBoQfkqtxkeUJvlL8--