[Bug 1701102] Re: partman-auto-raid refuses to allow /boot inside raid + LVM when using preseed.cfg partman-auto/expert_recipe
Paul McEnery
1701102 at bugs.launchpad.net
Wed Sep 25 21:03:39 UTC 2019
I have been attempting to preseed install 19.10 (eoan) and discovered
that this fix has not yet made its way into Ubuntu yet. Does anyone have
any idea when the fix is likely to make it in? Would be nice if it was
available in LTS (18.04) as well.
If you are quick enough to edit
/lib/partman/display.d/56initial_auto_raid_lvm and comment out the
relevant section in the upstream fix, the installation continues without
bailing out.
I would have hoped that almost 2.5 years would be sufficient time for an
upstream sync...
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to partman-auto-raid in Ubuntu.
https://bugs.launchpad.net/bugs/1701102
Title:
partman-auto-raid refuses to allow /boot inside raid + LVM when using
preseed.cfg partman-auto/expert_recipe
Status in partman-auto-raid package in Ubuntu:
Fix Committed
Bug description:
Having /boot reside inside a logical volume as part of a mdraid mirror
does work when configured manually, however it is impossible to
preseed with partman-auto/expert_recipe.
At some point, preseeding "partman-auto-lvm/no_boot boolean true" started to allow /boot to be inside LVM - partman-auto-lvm-56ubuntu1/lib/auto-lvm.sh contains:
# Make sure a boot partition isn't marked as lvmok, unless the user
# has told us it is ok for /boot to reside on a logical volume
if echo "$scheme" | grep lvmok | grep -q "[[:space:]]/boot[[:space:]]"; then
db_input critical partman-auto-lvm/no_boot || true
db_go || return 255
db_get partman-auto-lvm/no_boot || true
[ "$RET" = true ] || bail_out unusable_recipe
fi
)
However, partman-auto-raid-30ubuntu1/display.d/initial_auto_raid_lvm doesn't allow exceptions, and /boot can not be inside an lvm on raid volumes:
# Make sure a boot partition isn't marked as lvmok
if echo "$scheme" | grep lvmok | grep -q "[[:space:]]/boot[[:space:]]"; then
bail_out unusable_recipe
fi
Could a relaxed check similar to partman-auto-lvm be added to partman-auto-raid, so that /boot inside LVM inside mdraid can be preseeded as part of partman-auto/expert_recipe?
Thanks
James
d-i partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto-lvm/no_boot boolean true
d-i partman-auto-raid/recipe string \
1 2 0 lvm - raidid=1 .
d-i partman-auto/expert_recipe string \
myrecipe :: \
1000 5000 40000 raid \
$lvmignore{ } \
$primary{ } \
method{ raid } \
raidid{ 1 } \
. \
1000 1000 1000 ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /boot } \
. \
6000 6000 6000 ext4 \
$defaultignore{ } \
$lvmok{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ / } \
.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto-raid/+bug/1701102/+subscriptions
More information about the foundations-bugs
mailing list