Re: trixie build hangs at lvcreate command during disk partitioning

Lonlone Lee <[email protected]> Thu, 19 Feb 2026 23:03:49 +0000
Newsgroups gmane.linux.debian.fai
Message-ID <DM6PR12MB3722CE1D2B3AF312741E8242AA6BA@DM6PR12MB3722.namprd12.prod.outlook.com>
--_000_DM6PR12MB3722CE1D2B3AF312741E8242AA6BADM6PR12MB3722namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Following back up on this thread as we were never able to find a resolution=
 to this issue.  There is no issue with the host disk size.  But there is s=
ome additional information that we think might shed more light into what mi=
ght be causing lvcreate to hang:

We had to modify the 20-grub script in order for FAI to properly detect the=
 virtual disks on the VM

Here is the script we used:

#! /bin/bash
# support for GRUB version 2
#
# This script was adapted from: https://github.com/faiproject/fai-config/bl=
ob/master/scripts/GRUB_PC/10-setup
# Custmoizations are noted below

error=3D0; trap 'error=3D$(($?>$error?$?:$error))' ERR # save maximum error=
 code

set -a
set -x
exec > /tmp/20-grub.log 2>&1

# do not set up grub during dirinstall
if [ "$FAI_ACTION" =3D "dirinstall" ] ; then
    exit 0
fi
# during softupdate use this file
[ -r $LOGDIR/disk_var.sh ] && . $LOGDIR/disk_var.sh

if [ -z "$BOOT_DEVICE" ]; then
    exit 189
fi

# disable os-prober because of #802717
ainsl /etc/default/grub 'GRUB_DISABLE_OS_PROBER=3Dtrue'

# efivars may still be mounted from the host system during fai-diskimage
if [ -d $target/sys/firmware/efi/efivars ]; then
    umount $target/sys/firmware/efi/efivars
fi

# skip the rest, if not an initial installation
if [ $FAI_ACTION !=3D "install" ]; then
    $ROOTCMD update-grub
    exit $error
fi

# CHANGES START
# Without the code below, this grub script was unable to detect /dev/sda
# These commands mount the local devices inside of the chroot of the FAI bu=
ild
#
# Make sure /target has what grub/udevadm need
mountpoint -q /target/dev  || mount --bind /dev  /target/dev
mountpoint -q /target/proc || mount -t proc proc /target/proc
mountpoint -q /target/sys  || mount -t sysfs sys  /target/sys
# Optional but often helpful:
mountpoint -q /target/run  || mount --bind /run  /target/run
# Ensure udev has created by-id links inside the chroot
$ROOTCMD udevadm trigger --subsystem-match=3Dblock 2>/dev/null || true
$ROOTCMD udevadm settle 2>/dev/null || true

# This subroutine was updated to clean up the output to ensure that the gru=
b
# script executes successfully
get_stable_devname() {
    local _DEV=3D"$1"
    local i
    declare -a _RES
    local _UDEVOUT

    # debug -> stderr only
    >&2 echo "get_stable_devname: ROOTCMD=3D$ROOTCMD"
    >&2 echo "get_stable_devname: _DEV=3D$_DEV"

    # Ask udev inside the chroot for persistent names; suppress errors
    _UDEVOUT=3D$($ROOTCMD udevadm info -r --query=3Dsymlink "$_DEV" 2>/dev/=
null || true)

    for i in $_UDEVOUT; do
        if [[ "$i" =3D~ /by-id/scsi ]]; then
            _RES[10]=3D"$i"
        elif [[ "$i" =3D~ /by-id/ata ]]; then
            _RES[20]=3D"$i"
        elif [[ "$i" =3D~ /by-id/wwn ]]; then
            _RES[99]=3D"$i"
        fi
    done

    # If we found something, print the top candidate; otherwise fall back t=
o raw device
    if [[ -n "${_RES[*]}" ]]; then
        echo "${_RES[@]::1}"
    else
        echo "$_DEV"
    fi
}
# END CHANGES

# handle /boot in lvm-on-md
_bdev=3D$(readlink -f $BOOT_DEVICE)
if [ "${_bdev%%-*}" =3D "/dev/dm" ]; then
  BOOT_DEVICE=3D$( lvs --noheadings -o devices $BOOT_DEVICE | sed -e 's/^\s=
*\([^(]*\)(.*$/\1/' )
fi

# Check if RAID is used for the boot device
if [[ $BOOT_DEVICE =3D~ '/dev/md' ]]; then
    raiddev=3D${BOOT_DEVICE#/dev/}
    # install grub on all members of RAID
    for device in $(LC_ALL=3DC perl -ne 'if(/^'$raiddev'\s.+raid\d+\s(.+)/)=
{ $_=3D$1; s/\d+\[\d+\]//g; s/(nvme.+?)p/$1/g; print }' /proc/mdstat); do
pdevice=3D$(get_stable_devname /dev/$device)
if [ -z "$pdevice" ]; then
    # if we cannot find a persistent name (for e.g. in a VM) use old name
    pdevice=3D"/dev/$device"
fi
mbrdevices+=3D"$pdevice, "
echo Installing grub on /dev/$device =3D $pdevice
$ROOTCMD grub-install --no-floppy "/dev/$device"
    done
    # remove last ,
    mbrdevices=3D${mbrdevices%, }
else
    mbrdevices=3D$(get_stable_devname $BOOT_DEVICE)
    if [ -z "$mbrdevices" ]; then
# if we cannot find a persistent name (for e.g. in a VM) use old name
mbrdevices=3D$BOOT_DEVICE
    fi

# CHANGES START
# This cleans up and properly sets the mbrdevices variable so the following=
 grub-install command
# is successful
    # if somehow mbrdevices contains newline/garbage, collapse and validate=
 it
    mbrdevices=3D$(echo "$mbrdevices" | tr -d '\r' | tr '\n' ' ' | sed 's/ =
 */ /g' | sed 's/^ *//; s/ *$//')

    # Ensure it's a usable path (if not, fall back)
    if [[ ! -e "$mbrdevices" && ! -b "$mbrdevices" ]]; then
        >&2 echo "WARNING: computed grub target '$mbrdevices' not found; us=
ing $BOOT_DEVICE"
        mbrdevices=3D"$BOOT_DEVICE"
    fi
# END CHANGES

    echo "Installing grub on $BOOT_DEVICE =3D $mbrdevices"
    $ROOTCMD grub-install --no-floppy "$mbrdevices"
fi

echo "grub-pc grub-pc/install_devices multiselect $mbrdevices" | $ROOTCMD d=
ebconf-set-selections
$ROOTCMD dpkg-reconfigure grub-pc
exit $error



________________________________
From: linux-fai <[email protected]> on behalf of Thomas Lange =
<[email protected]>
Sent: Thursday, September 25, 2025 1:56 AM
To: fully automatic installation for Linux <[email protected]>
Subject: Re: trixie build hangs at lvcreate command during disk partitionin=
g

>>>>> On Wed, 24 Sep 2025 15:15:15 -0700, [email protected] said:

    > Executing: lvcreate --yes -n root -L 12288 my_vg  <--- HANGS HERE
I cannot reproduce this error.

    > Any suggestions for troubleshooting steps?

    > More information below:

    > Here is the disk configuration:

    > disk_config disk1 align-at:4k fstabkey:uuid
    > primary /boot              512   ext4  rw,noatime
    > primary -                  4096- -     -
    > primary /var/cache/openafs 4096  ext2  defaults,noatime

    > disk_config lvm
    > vg            my_vg          sda2
I've changed sda2 to disk1.2, which is more elegant.
Then I've booted this FAI config in qemu with a fresh disk of size
40GB. It went smoothly through the disk partitioning steps.
Maybe your local storage is full and the qemu disk cannot grow to the
needed size? Pressing Alt-F2 gives you another root shell during the
FAI installation, so you can call commands to debug this.

But check your disks space on the host.

--
best regards Thomas

--_000_DM6PR12MB3722CE1D2B3AF312741E8242AA6BADM6PR12MB3722namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
Following back up on this thread as we were never able to find a resolution=
 to this issue.&nbsp; There is no issue with the host disk size.&nbsp; But =
there is some additional information that we think might shed more light in=
to what might be causing lvcreate to hang:</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
We had to modify the 20-grub script in order for FAI to properly detect the=
 virtual disks on the VM</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
Here is the script we used:</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">#! /bin/bash</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># support for GRUB version 2</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">#</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># This script was adapted from: https://gith=
ub.com/faiproject/fai-config/blob/master/scripts/GRUB_PC/10-setup</span></d=
iv>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Custmoizations are noted below</span></div=
>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">error=3D0; trap 'error=3D$(($?&gt;$error?$?:=
$error))' ERR # save maximum error code</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">set -a</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">set -x</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">exec &gt; /tmp/20-grub.log 2&gt;&amp;1</span=
></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># do not set up grub during dirinstall</span=
></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ &quot;$FAI_ACTION&quot; =3D &quot;dirin=
stall&quot; ] ; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; exit 0</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># during softupdate use this file</span></di=
v>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">[ -r $LOGDIR/disk_var.sh ] &amp;&amp; . $LOG=
DIR/disk_var.sh</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ -z &quot;$BOOT_DEVICE&quot; ]; then</sp=
an></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; exit 189</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># disable os-prober because of #802717</span=
></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">ainsl /etc/default/grub 'GRUB_DISABLE_OS_PRO=
BER=3Dtrue'</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># efivars may still be mounted from the host=
 system during fai-diskimage</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ -d $target/sys/firmware/efi/efivars ]; =
then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; umount $target/sys/firmware/ef=
i/efivars</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># skip the rest, if not an initial installat=
ion</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ $FAI_ACTION !=3D &quot;install&quot; ];=
 then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; $ROOTCMD update-grub</span></d=
iv>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; exit $error</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># </span>CHANGES START</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Without the code below, this grub script w=
as unable to detect /dev/sda</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># These commands mount the local devices ins=
ide of the chroot of the FAI build&nbsp;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">#&nbsp;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Make sure /target has what grub/udevadm ne=
ed</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mountpoint -q /target/dev&nbsp; || mount --b=
ind /dev&nbsp; /target/dev</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mountpoint -q /target/proc || mount -t proc =
proc /target/proc</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mountpoint -q /target/sys&nbsp; || mount -t =
sysfs sys&nbsp; /target/sys</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Optional but often helpful:</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mountpoint -q /target/run&nbsp; || mount --b=
ind /run&nbsp; /target/run</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Ensure udev has created by-id links inside=
 the chroot</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">$ROOTCMD udevadm trigger --subsystem-match=
=3Dblock 2&gt;/dev/null || true</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">$ROOTCMD udevadm settle 2&gt;/dev/null || tr=
ue</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># This subroutine was updated to clean up th=
e output to ensure that the grub</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># script executes successfully</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">get_stable_devname() {</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; local _DEV=3D&quot;$1&quot;</s=
pan></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; local i</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; declare -a _RES</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; local _UDEVOUT</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # debug -&gt; stderr only</spa=
n></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &gt;&amp;2 echo &quot;get_stab=
le_devname: ROOTCMD=3D$ROOTCMD&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &gt;&amp;2 echo &quot;get_stab=
le_devname: _DEV=3D$_DEV&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # Ask udev inside the chroot f=
or persistent names; suppress errors</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; _UDEVOUT=3D$($ROOTCMD udevadm =
info -r --query=3Dsymlink &quot;$_DEV&quot; 2&gt;/dev/null || true)</span><=
/div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; for i in $_UDEVOUT; do</span><=
/div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; if [[ &quot;$i&q=
uot; =3D~ /by-id/scsi ]]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _R=
ES[10]=3D&quot;$i&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; elif [[ &quot;$i=
&quot; =3D~ /by-id/ata ]]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _R=
ES[20]=3D&quot;$i&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; elif [[ &quot;$i=
&quot; =3D~ /by-id/wwn ]]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _R=
ES[99]=3D&quot;$i&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; fi</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; done</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # If we found something, print=
 the top candidate; otherwise fall back to raw device</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; if [[ -n &quot;${_RES[*]}&quot=
; ]]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;${_RE=
S[@]::1}&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; else</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;$_DEV=
&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; fi</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">}</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># END CHANGES</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># handle /boot in lvm-on-md</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">_bdev=3D$(readlink -f $BOOT_DEVICE)</span></=
div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ &quot;${_bdev%%-*}&quot; =3D &quot;/dev=
/dm&quot; ]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; BOOT_DEVICE=3D$( lvs --noheadings -o =
devices $BOOT_DEVICE | sed -e 's/^\s*\([^(]*\)(.*$/\1/' )</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># Check if RAID is used for the boot device<=
/span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [[ $BOOT_DEVICE =3D~ '/dev/md' ]]; then</=
span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; raiddev=3D${BOOT_DEVICE#/dev/}=
</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # install grub on all members =
of RAID</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; for device in $(LC_ALL=3DC per=
l -ne 'if(/^'$raiddev'\s.+raid\d+\s(.+)/){ $_=3D$1; s/\d+\[\d+\]//g; s/(nvm=
e.+?)p/$1/g; print }' /proc/mdstat); do</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">pdevice=3D$(get_stable_devname /dev/$device)=
</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">if [ -z &quot;$pdevice&quot; ]; then</span><=
/div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # if we cannot find a persiste=
nt name (for e.g. in a VM) use old name</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; pdevice=3D&quot;/dev/$device&q=
uot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mbrdevices+=3D&quot;$pdevice, &quot;</span><=
/div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">echo Installing grub on /dev/$device =3D $pd=
evice</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">$ROOTCMD grub-install --no-floppy &quot;/dev=
/$device&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; done</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # remove last ,</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; mbrdevices=3D${mbrdevices%, }<=
/span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">else</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; mbrdevices=3D$(get_stable_devn=
ame $BOOT_DEVICE)</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; if [ -z &quot;$mbrdevices&quot=
; ]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># if we cannot find a persistent name (for e=
.g. in a VM) use old name</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">mbrdevices=3D$BOOT_DEVICE</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># </span>CHANGES START</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># This cleans up and properly sets the mbrde=
vices variable so the following grub-install command</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># is successful</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # if somehow mbrdevices contai=
ns newline/garbage, collapse and validate it</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; mbrdevices=3D$(echo &quot;$mbr=
devices&quot; | tr -d '\r' | tr '\n' ' ' | sed 's/&nbsp; */ /g' | sed 's/^ =
*//; s/ *$//')</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; # Ensure it's a usable path (i=
f not, fall back)</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; if [[ ! -e &quot;$mbrdevices&q=
uot; &amp;&amp; ! -b &quot;$mbrdevices&quot; ]]; then</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; &gt;&amp;2 echo =
&quot;WARNING: computed grub target '$mbrdevices' not found; using $BOOT_DE=
VICE&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; &nbsp; &nbsp; mbrdevices=3D&qu=
ot;$BOOT_DEVICE&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; fi</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof"># END CHANGES</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; echo &quot;Installing grub on =
$BOOT_DEVICE =3D $mbrdevices&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">&nbsp; &nbsp; $ROOTCMD grub-install --no-flo=
ppy &quot;$mbrdevices&quot;</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">fi</span></div>
<div style=3D"line-height: normal; margin: 0px; min-height: 13px; font-fami=
ly: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" =
class=3D"elementToProof">
<br>
</div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">echo &quot;grub-pc grub-pc/install_devices m=
ultiselect $mbrdevices&quot; | $ROOTCMD debconf-set-selections</span></div>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">$ROOTCMD dpkg-reconfigure grub-pc</span></di=
v>
<div style=3D"line-height: normal; margin: 0px; font-family: Calibri, Helve=
tica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class=3D"elementTo=
Proof">
<span class=3D"elementToProof">exit $error</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
<br>
</div>
<hr style=3D"display: inline-block; width: 98%;">
<div id=3D"divRplyFwdMsg">
<div style=3D"direction: ltr; font-family: Calibri, sans-serif; font-size: =
11pt; color: rgb(0, 0, 0);">
<b>From:</b>&nbsp;linux-fai &lt;[email protected]&gt; on behal=
f of Thomas Lange &lt;[email protected]&gt;<br>
<b>Sent:</b>&nbsp;Thursday, September 25, 2025 1:56 AM<br>
<b>To:</b>&nbsp;fully automatic installation for Linux &lt;linux-fai@uni-ko=
eln.de&gt;<br>
<b>Subject:</b>&nbsp;Re: trixie build hangs at lvcreate command during disk=
 partitioning</div>
<div style=3D"direction: ltr;">&nbsp;</div>
</div>
<div style=3D"font-size: 11pt;">&gt;&gt;&gt;&gt;&gt; On Wed, 24 Sep 2025 15=
:15:15 -0700, [email protected] said:<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; Executing: lvcreate --yes -n root -L 12288 my_vg&nb=
sp; &lt;--- HANGS HERE<br>
I cannot reproduce this error.<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; Any suggestions for troubleshooting steps?<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; More information below:<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; Here is the disk configuration:<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; disk_config disk1 align-at:4k fstabkey:uuid<br>
&nbsp;&nbsp;&nbsp; &gt; primary /boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512&nbsp;&nbsp; ext4&nbsp; rw,noat=
ime<br>
&nbsp;&nbsp;&nbsp; &gt; primary -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4096- -&nbsp;&=
nbsp;&nbsp;&nbsp; -<br>
&nbsp;&nbsp;&nbsp; &gt; primary /var/cache/openafs 4096&nbsp; ext2&nbsp; de=
faults,noatime<br>
<br>
&nbsp;&nbsp;&nbsp; &gt; disk_config lvm<br>
&nbsp;&nbsp;&nbsp; &gt; vg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; my_vg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; sda2<br>
I've changed sda2 to disk1.2, which is more elegant.<br>
Then I've booted this FAI config in qemu with a fresh disk of size<br>
40GB. It went smoothly through the disk partitioning steps.<br>
Maybe your local storage is full and the qemu disk cannot grow to the<br>
needed size? Pressing Alt-F2 gives you another root shell during the<br>
FAI installation, so you can call commands to debug this.<br>
<br>
But check your disks space on the host.<br>
<br>
--<br>
best regards Thomas</div>
</body>
</html>

--_000_DM6PR12MB3722CE1D2B3AF312741E8242AA6BADM6PR12MB3722namp_--