if [ "$bootdev" != "dummy" ] && [ ! "$frdev" ]; then
# check for a preseeded value
db_get grub-installer/bootdev || true
if [ -n "$RET" ] ; then bootdev="$RET"
fi
fi
is the one responsible for getting the bad value.
Which means that something else populated grub-installer/bootdev wrongly.
When executing:
/usr/bin/ grub-installer /target
From install environment, the following part:
if [ "$bootdev" != "dummy" ] && [ ! "$frdev" ]; then bootdev || true
bootdev= "$RET"
# check for a preseeded value
db_get grub-installer/
if [ -n "$RET" ] ; then
fi
fi
is the one responsible for getting the bad value.
Which means that something else populated grub-installer/ bootdev wrongly.
Checking...