I need to configure these disk partitions set with Debian installer:
Here is the fragment of my preseed file related to partition ops:/dev/sda
/dev/sda1 : /boot partition 1024M ext4 bootable
/dev/sdb
With LVM...
pv = /dev/sdb -> vg (vgName = "sys") based on this pv
lv for swap based on this vg : 2048M
lv for root based on this vg : 5120M ext4
Code: Select all
### GUEST OS DISK GEOMETRY (PARTITIONING). BEGIN: ###################################################################################################
# PREDEFINED /DEV/SDA (/DEV/SDB) LVM SETTINGS:
d-i partman-auto/method string lvm
d-i partman-auto/disk string /dev/sda /dev/sdb
# REMOVE POTENTIAL OLDER LVM CONFIGURATION:
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
# CONFIRMATION TO WRITE LVM PARTITIONS:
#d-i partman-lvm/confirm boolean true
# DO NOT PROMPT TO OVERWRITE Y/N:
#d-i partman-lvm/confirm_nooverwrite boolean true
# PARTITION OPERATIONS:
#d-i partman-auto/choose_recipe select mdg
#d-i partman-auto-lvm/new_vg_name string sys
d-i partman-auto/expert_recipe string \
mdg :: \
1024 1024 1024 ext4 \
$primary{ } \
$bootable{ } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
#reserved_for_root{ 5 } \
mountpoint{ /boot } \
options/discard{ discard } \
options/noatime{ noatime } \
options/nodev{ nodev } \
device{ /dev/sda } \
. \
1024 10240 20480 ext4 \
#$defaultignore{ } \
$lvmignore{ } \
$primary{ } \
method{ lvm } \
#device{ /dev/sda } \
device{ /dev/sdb } \
#device{ /dev/sda2} \
vg_name{ sys } \
. \
2048 2048 2048 swap \
$defaultignore{ } \
$lvmok{ } \
in_vg{ sys } \
lv_name{ lv_swap } \
method{ swap } format{ } \
. \
5120 5120 5120 ext4 \
$defaultignore{ } \
$lvmok{} \
in_vg{ sys } \
lv_name{ lv_root } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
options/noatime{ noatime } \
options/user_xattr{ user_xattr } \
.
# THIS KEYWORDS MAKES PARTMAN AUTOMATICALLY PERFORM PARTITIONING WITHOUT CONFIRMATION:
d-i partman-partitioning/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
### GUEST OS DISK GEOMETRY (PARTITIONING). END! #####################################################################################################
[img]
https://drive.google.com/file/d/1auWIwa ... sp=sharing
[/img]
I very need to know: where I was wrong?
Big thanks in advance and good luck!