Problem: Can’t provisioning new Debian systems, because the partition table is invalid
Expected outcome: Debian installer installs automatically the system
Foreman and Proxy versions: 3.16.0
Foreman and Proxy plugin versions: 3.16.0
Distribution and version: Debian 12 (bookworm)
Other relevant data:
Debian 12 partition template (bios)
<%#
kind: ptable
name: Preseed BIOS LVM
model: Ptable
oses:
- Debian
- Ubuntu
%>
<% if host_param('install-disk') -%>
d-i partman-auto/disk string <%= host_param('install-disk') %>
d-i grub-installer/bootdev string <%= host_param('install-disk') %>
<% else -%>
# Use the first detected hard disk
d-i partman-auto/disk string /dev/vda
d-i grub-installer/bootdev string /dev/vda
<% end -%>
d-i partman-partitioning/choose_label select gpt
d-i partman-partitioning/default_label string gpt
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg string vg00
#d-i partman-auto-lvm/growpart boolean true
d-i partman-auto/choose_recipe select root-vg
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/expert_recipe string \
root-vg :: \
1 2 4 biosgrub \
method{ biosgrub } \
. \
1024 1024 1024 ext4 \
$bootable{} \
method{ format } format{} \
use_filesystem{} filesystem{ ext4 } \
mountpoint{ /boot } \
. \
61440 -1 -1 lvm \
method{ lvm } \
vg_name{ vg00 } \
. \
1024 8192 8192 linux-swap \
$lvmok{} \
method{ swap } format{} \
lv_name{ swap } \
in_vg{ vg00 } \
. \
1024 8192 8192 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ /usr } \
lv_name{ usr } \
in_vg{ vg00 } \
. \
1024 8192 8192 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ /opt } \
lv_name{ opt } \
in_vg{ vg00 } \
. \
1024 6144 6144 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ /home } \
lv_name{ home } \
in_vg{ vg00 } \
. \
1024 10240 10240 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ /var } \
lv_name{ var } \
in_vg{ vg00 } \
. \
1024 12288 12288 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ /tmp } \
lv_name{ tmp } \
in_vg{ vg00 } \
. \
1024 10240 10240 xfs \
$lvmok{} \
method{ format } format{} \
use_filesystem{} filesystem{ xfs } \
mountpoint{ / } \
lv_name{ root } \
in_vg{ vg00 } \
.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i debian-installer/verbose boolean true
d-i debian-installer/allow_unauthenticated boolean true
When I start an installation, it doesn’t use the template, but asks interactively.
If I press continue, the installer could not find a root file system:
This is the installer log after I manually continued:
Thanks
tadopai


