Debian 13: automatická instalace s LVM

ZAJDAN

  • *****
  • 2 096
    • Zobrazit profil
    • E-mail
Debian 13: automatická instalace s LVM
« kdy: Dnes v 15:31:56 »
Ahoj,
s Debian 13 testuji Automated installation s preseed konfigurací.
Bojuju s tím, že se neaplikuje nakonfigurovaný LVM layout a podbídne se mi úplně jiný (nějaký default)
Cílem je na celém /dev/sda vytvořit LVM. Nevytvářet separátní oddíl pro boot, protože GRUB2 umí bootovat z LVM.
Uvnitř LVM oddíl pro root, swap, home

Kód: [Vybrat]
### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
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                           \
        pvs ::                                                                 \
              20480 26000 30000 ext4                               \
                      $primary{ }                                          \
                      method{ lvm }                                      \
                      vg_name{ system }                               \
        .                                                                         \
        lv ::                                                                   \
              26000 26000 26000 ext4           \
                      $lvmok{ }                                             \
                      lv_name{ root }                                    \
                      method{ format } format{ }                  \
                      use_filesystem{ } filesystem{ ext4 }      \
                      mountpoint{ / }                                    \
                      in_vg{ system }                                    \
              .                                                                   \
              1048 1500 2048 linux-swap                            \
                      $lvmok{ }                                             \
                      lv_name{ swap }                                   \
                      method{ swap } format{ }                     \
                      in_vg{ system }                                    \
              .                                                                   \
      1048 1048 1048 ext4                                    \
                      $lvmok{ }                                             \
                      lv_name{ home }                                  \
                      method{ format } format{ }                   \
                      use_filesystem{ } filesystem{ ext4 }       \
                      mountpoint{ /home }                             \
                      in_vg{ system }                                    \
              .                                                                   \

Vesele, vesele do továrny dělník běží...vesele, vesele do továrny jde. Vesele se usmívá když mu soustruh zazpívá...vesele, vesele do továrny jde. Vesele si poskočí když se soustruh roztočí ...vesele, vesele do továrny jde.