Why does this partman/auto expert_recipe not work (LV for /home not created)

Asked by Will Dennis

I have the following partitioning config in my preseed file:

```

# Partitioner Label Default (GPT)
d-i partman/choose_label string gpt
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-partitioning/choose_label string gpt
d-i partman/default_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-partitioning/default_label string gpt
# Partitioner Prompt Confirmations
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-md/confirm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-md/confirm_nochanges boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/device_remove_lvm_span boolean true
d-i partman-lvm/confirm_nochanges boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman-basicfilesystems/no_swap boolean false
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
#Partitioning Scheme
d-i partman-auto/disk string /dev/sda
d-i grub-installer/choose_bootdev select /dev/sda
d-i grub-installer/bootdev string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto/choose_recipe select custom_lvm
d-i partman/auto expert_recipe string \
  custom_lvm :: \
    500 533 1024 free \
     $iflabel{ gpt } $reusemethod{ } \
     method{ efi } format{ } \
    . \
    128 160 256 ext2 \
       $lvmignore{ } \
       method{ format } format{ } use_filesystem{ } \
     filesystem{ ext2 } mountpoint{ /boot } \
    . \
    10240 102399 102400 ext4 \
     $defaultignore{ } $lvmok{ } \
     lv_name{ root } in_vg{ vg00 } \
     method{ format } format{ } use_filesystem{ } \
        filesystem{ ext4 } mountpoint{ / } \
    . \
    10240 102433 1000000000 ext4 \
     $defaultignore{ } $lvmok{ } \
        lv_name{ home } in_vg{ vg00 } \
        method{ format } format{ } use_filesystem{ } \
        filesystem{ ext4 } mountpoint{ /home } \
    . \
    50% 1 100% linux-swap \
     $defaultignore{ } $lvmok{ } \
     lv_name{ swap } in_vg{ vg00 } \
        method{ swap } format{ } \
    .
```

So, what I want is 3 LV's in my VG "vg00", one for "/", one for "/home", and one for swap. What I actually get when the install finishes is:

```
root@testinstall:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 488M 0 part /boot
└─sda3 8:3 0 930.5G 0 part
  ├─vg00-root 252:0 0 926.5G 0 lvm /
  └─vg00-swap_1 252:1 0 4G 0 lvm [SWAP]
```
(note the lack of a "/home" lvm)

Is there a error with my config, or does LVM use in partman/auto only support "/" and swap LVs only? (have tried many parameter changes with my config, nothing I do results in a "/home? LV being created...)

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.