Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f8SPn-0001yw-ER for mharc-grub-devel@gnu.org; Tue, 17 Apr 2018 11:21:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8SPi-0001x7-W8 for grub-devel@gnu.org; Tue, 17 Apr 2018 11:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8SPd-0001qR-91 for grub-devel@gnu.org; Tue, 17 Apr 2018 11:20:59 -0400 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]:35826) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8SPc-0001pm-Up for grub-devel@gnu.org; Tue, 17 Apr 2018 11:20:53 -0400 Received: by mail-pl0-x244.google.com with SMTP id w21-v6so384757plq.2 for ; Tue, 17 Apr 2018 08:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cFCzrddrlrm6+d/W0GmcbVFaIZK+pnj6rZc3h0LiI7o=; b=cSV03Z3zjC4bBDZRAgKwtoBCqwfgg7KxZfe8nr6l2hPyA7i4JlKIZbu89c7ugbnzLi QTKVQ5bedGBg460+9fJ9D0lq3SgTeevJLlTHWAnb+HUC98o/LCeNLhPecPfF7M/xx4UG 2Vwus5RLufYMI7zS1g16Wj9r0XZvDJ0CZKbWOX5IAR0TkNTySJ9R97kPUW+XkRqgxjyD IvgiP2s5KLxCXa859wmk+rMzpnx7k2BliJ2EY4AfqW7hyvQ1rsTrwPSgu0Tg/vetCiqn ZQNxbf5hlJrOzgUdqwsvjjtlaRvRYcftJvcGWljUfkx4sOrJInWOacueeXUHy1R8Bi3R OgmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=cFCzrddrlrm6+d/W0GmcbVFaIZK+pnj6rZc3h0LiI7o=; b=lI8sK7ltGNzPYoJMeGGsnPFAjMKl1AFB+jHoXupdYSpqkXb4PkNPopyGckByJiylFS XEt1QwMAYJ5uP2NRP4c0cFr05trG1JZ1jaeuzgSXBUJ4g81jLWzlLUPEeT+1mZmlvEw6 AMSX7/DbdCtW+151+BzN6sL3Duh8ZaD8YDZZnu1oybAbo/c9mV7T5pNOuASYPVxfPR07 GFXcMBvvo8HDkSYc3vlvIykJwmW1bYzFs12n0Hrm590ImeqVfOawXNkNwcY0Ow1h9Dtr UlIC+3HpT1ci+tGbfvNmP5eS9o8f/6OYy5YqZg/LG1IIKXVVsVxi8b64lf6l1dD02OXk czlw== X-Gm-Message-State: ALQs6tAxeRjgEjD23jlxxF3RBtkjy3Xcj9d4aRXgxanopo6wUCUTfunD A2CyeQ3vdyn7IiSiAFheJ5QS+w== X-Google-Smtp-Source: AIpwx4/nzdRF7pwB9bQR4ofyQnVuWvWV+aVcjteg6AQ8FRMRJKgPVFoYkgsmmsN0NEurCSmpfYbcsg== X-Received: by 2002:a17:902:9349:: with SMTP id g9-v6mr2411966plp.73.1523978451030; Tue, 17 Apr 2018 08:20:51 -0700 (PDT) Received: from ?IPv6:2601:602:9c01:e86a:2ec2:3a19:cd81:76ab? ([2601:602:9c01:e86a:2ec2:3a19:cd81:76ab]) by smtp.googlemail.com with ESMTPSA id 189sm31787276pfu.44.2018.04.17.08.20.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 08:20:49 -0700 (PDT) Subject: Re: [GRUB PARTUUID PATCH V10 4/4] Update grub script template files To: Daniel Kiper Cc: grub-devel@gnu.org References: <20180417133640.GB21283@router-fw-old.local.net-space.pl> From: Nick Vinson Openpgp: preference=signencrypt Autocrypt: addr=nvinson234@gmail.com; prefer-encrypt=mutual; keydata= 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 xHE= Message-ID: Date: Tue, 17 Apr 2018 08:20:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180417133640.GB21283@router-fw-old.local.net-space.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::244 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 15:21:01 -0000 On 04/17/2018 06:36 AM, Daniel Kiper wrote: > On Mon, Apr 16, 2018 at 10:36:26PM -0700, Nicholas Vinson wrote: >> Update grub-mkconfig.in and 10_linux.in to support grub-probe's new >> partuuid target. Update grub.texi documentation. The following table >> shows how GRUB_DISABLE_LINUX_UUID, GRUB_DISABLE_LINUX_PARTUUID, and >> initramfs detection interact: >> >> Initramfs GRUB_DISABLE_LINUX_PARTUUID GRUB_DISABLE_LINUX_UUID Linux Root >> detected Set Set ID Method >> >> false false false part UUID >> false false true part UUID >> false true false dev name >> false true true dev name >> true false false fs UUID >> true false true part UUID >> true true false fs UUID >> true true true dev name >> >> Note: GRUB_DISABLE_LINUX_PARTUUID and GRUB_DISABLE_LINUX_UUID equate to >> 'false' when unset or set to any value other than 'true'. >> GRUB_DISABLE_LINUX_PARTUUID defaults to 'true'. >> Signed-off-by: Nicholas Vinson >> --- >> docs/grub.texi | 67 ++++++++++++++++++++++++++++++++++--- >> util/grub-mkconfig.in | 3 ++ >> util/grub.d/10_linux.in | 22 ++++++++++-- >> util/grub.d/20_linux_xen.in | 22 ++++++++++-- >> 4 files changed, 104 insertions(+), 10 deletions(-) >> >> diff --git a/docs/grub.texi b/docs/grub.texi >> index 0f2ab91fc..6aa65552f 100644 >> --- a/docs/grub.texi >> +++ b/docs/grub.texi >> @@ -1214,10 +1214,11 @@ GRUB is configured using @file{grub.cfg}, usually located under >> need to write the whole thing by hand. >> >> @menu >> -* Simple configuration:: Recommended for most users >> -* Shell-like scripting:: For power users and developers >> -* Multi-boot manual config:: For non-standard multi-OS scenarios >> -* Embedded configuration:: Embedding a configuration file into GRUB >> +* Simple configuration:: Recommended for most users >> +* Root Identifcation Heuristics:: Summary on how the root file system is identified. >> +* Shell-like scripting:: For power users and developers >> +* Multi-boot manual config:: For non-standard multi-OS scenarios >> +* Embedded configuration:: Embedding a configuration file into GRUB >> @end menu >> >> >> @@ -1425,6 +1426,17 @@ the Linux kernel, using a @samp{root=UUID=...} kernel parameter. This is >> usually more reliable, but in some cases it may not be appropriate. To >> disable the use of UUIDs, set this option to @samp{true}. >> >> +@item GRUB_DISABLE_LINUX_PARTUUID >> +If @command{grub-mkconfig} cannot identify the root filesystem via its >> +universally-unique indentifier (UUID), @command{grub-mkconfig} can use the UUID >> +of the partition containing the filesystem to identify the root filesystem to >> +the Linux kernel via a @samp{root=PARTUUID=...} kernel parameter. This is not >> +as reliable as using the filesystem UUID, but is more reliable than using the >> +Linux device names. When @samp{GRUB_DISABLE_LINUX_PARTUUID} is set to >> +@samp{false}, the Linux kernel version must be 2.6.37 (3.10 for systems using >> +the MSDOS partition scheme) or newer. This option defaults to @samp{true}. To >> +enable the use of partition UUIDs, set this option to @samp{false}. >> + >> @item GRUB_DISABLE_RECOVERY >> If this option is set to @samp{true}, disable the generation of recovery >> mode menu entries. >> @@ -1556,6 +1568,53 @@ edit the scripts in @file{/etc/grub.d} directly. >> menu entries; simply type the menu entries you want to add at the end of >> that file, making sure to leave at least the first two lines intact. >> >> +@node Root Identifcation Heuristics >> +@section Root Identifcation Heuristics >> +If the target operating system uses the Linux kernel, @command{grub-mkconfig} >> +attempts to identify the root file system via a heuristic algoirthm. This >> +algorithm selects the identification method of the root file system by >> +considering three factors. The first is if an initrd for the target operating >> +system is also present. The second is @samp{GRUB_DISABLE_LINUX_UUID} and if set >> +to @samp{true}, prevents @command{grub-mkconfig} from identifying the root file >> +system by its UUID. The third is @samp{GRUB_DISABLE_LINUX_PARTUUID} and if set >> +to @samp{true}, prevents @command{grub-mkconfig} from identifying the root file >> +system via the UUID of its enclosing partition. If the variables are assigned >> +any other value, that value is considered equivalent to @samp{false}. The >> +variables are also considered to be set to @samp{false} if they are not set. >> + >> +When booting, the Linux kernel will delegate the task of mounting the root >> +filesystem to the initrd. Most initrd images determine the root file system by >> +checking the Linux kernel's command-line for the @samp{root} key and use its >> +value as the identification method of the root file system. To improve the >> +reliability of booting, most initrd images also allow the root file system to be >> +identified by its UUID. Because of this behavior, the @command{grub-mkconfig} >> +command will set @samp{root} to @samp{root=UUID=...} to provide the initrd with >> +the filesystem UUID of the root file system. >> + >> +If no initrd is detected or @samp{GRUB_DISABLE_LINUX_UUID} is set then > > s/set/set to @samp{true}/? Yes. Thanks. > >> +@command{grub-command} will identify the root filesystem by setting the kernel >> +command-line variable @samp{root} to @samp{root=PARTUUID=...} unless >> +@samp{GRUB_DISABLE_LINUX_PARTUUID} is also set to @samp{true}. If >> +@samp{GRUB_DISABLE_LINUX_PARTUUID} is also set to @samp{true}, >> +@command{grub-command} will identify by its LInux device name. > > s/LInux/Linux/g ack. > >> + >> +The following table summarizes the behavior of the @command{grub-mkconfig} >> +command. >> + >> +@multitable {detected} {GRUB_DISABLE_LINUX_PARTUUID} {GRUB_DISABLE_LINUX_UUID} {Linux Root} >> +@headitem Initrd detected @tab GRUB_DISABLE_LINUX_PARTUUID Set To @tab GRUB_DISABLE_LINUX_UUID Set To @tab Linux Root ID Method >> +@item false @tab false @tab false @tab part UUID >> +@item false @tab false @tab true @tab part UUID > > I hope that you have tested these two settings and they work. If yes then > I am happy with all the patches. If there are no objections I will commit > all of them in a week or so. I will fix both nitpicks listed above just > before commit. I did. I've added a test script and its output at the bottom of this email. Thanks, Nicholas Vinson > > Daniel > ========== test.sh ========== #/bin/sh [[ -f Makefile ]] && make distclean &>/dev/null echo "Configuring GRUB..." ./configure --prefix=$PWD/image CFLAGS="-Wno-error" --with-platform=efi &>/dev/null \ || { echo "configure failed"; exit 1; } echo "Building GRUB..." make -j9 &>/dev/null || { echo "make failed"; exit 1; } echo "Installing GRUB..." make install &>/dev/null; echo $? || { echo "make install failed"; exit 1; } GRUB_MKCONFIG="$PWD/image/sbin/grub-mkconfig" echo "Disabling submenu and recovery entries..." export GRUB_DISABLE_SUBMENU=y GRUB_DISABLE_RECOVERY=true rm -f /boot/initramfs* rm -f /boot/*xen* echo "" echo "****************************************" echo "* *" echo "* 10_linux script test *" echo "* *" echo "****************************************" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" touch /boot/initramfs-4.16.2-gentoo.img echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+linux\|[12]0_linux')" rm -f /boot/initramfs* cp /boot/config-4.16.2-gentoo{,.orig} echo "CONFIG_XEN_DOM0=y" >> /boot/config-4.16.2-gentoo touch /boot/xen echo "" echo "****************************************" echo "* *" echo "* 20_linux script test *" echo "* *" echo "****************************************" echo "" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" touch /boot/initramfs-4.16.2-gentoo.img echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" echo "" echo "INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true" export GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true echo "$($GRUB_MKCONFIG 2>/dev/null | grep '[[:space:]]\+module\|[12]0_linux')" rm -f /boot/initramfs* rm /boot/xen mv /boot/config-4.16.2-gentoo{.orig,} ========== test.log ========== Configuring GRUB... Building GRUB... Installing GRUB... 0 Disabling submenu and recovery entries... **************************************** * * * 10_linux script test * * * **************************************** No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=/dev/sdg2 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=/dev/sdg2 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=UUID=962d87b1-d7b4-465a-9ea7-01c6a20439a5 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=UUID=962d87b1-d7b4-465a-9ea7-01c6a20439a5 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### linux /vmlinuz-4.16.2-gentoo root=/dev/sdg2 ro ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### **************************************** * * * 20_linux script test * * * **************************************** No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=/dev/sdg2 ro ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### No INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=/dev/sdg2 ro ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=UUID=962d87b1-d7b4-465a-9ea7-01c6a20439a5 ro module --nounzip /initramfs-4.16.2-gentoo.img ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=false GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=PARTUUID=ff807b48-63c7-41ff-a0b4-0de6b83278b9 ro module --nounzip /initramfs-4.16.2-gentoo.img ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=false ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=UUID=962d87b1-d7b4-465a-9ea7-01c6a20439a5 ro module --nounzip /initramfs-4.16.2-gentoo.img ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### INITRAMFS GRUB_DISABLE_LINUX_PARTUUID=true GRUB_DISABLE_LINUX_UUID=true ### BEGIN /data/nvinson/grub/image/etc/grub.d/10_linux ### ### END /data/nvinson/grub/image/etc/grub.d/10_linux ### ### BEGIN /data/nvinson/grub/image/etc/grub.d/20_linux_xen ### module /vmlinuz-4.16.2-gentoo placeholder root=/dev/sdg2 ro module --nounzip /initramfs-4.16.2-gentoo.img ### END /data/nvinson/grub/image/etc/grub.d/20_linux_xen ###