Hi,
I am trying to automatically allocate the remaining free space to / (root) during installation, but the LVM for / did not take the available space. Second thing swap is not configure as lvm.
we would like to work with UEFI.
This is my config file-
storage:
layout:
name: lvm # Automatically sets up LVM
config:
- ptable: gpt
path: /dev/nvme0n1
wipe: superblock-recursive
preserve: false
grub_device: true
type: disk
id: disk-nvme
- device: disk-nvme
size: 536870912
flag: [boot, esp]
wipe: superblock-recursive
preserve: false
grub_device: false
type: partition
id: partition-efi
- fstype: vfat
volume: partition-efi
preserve: false
type: format
id: format-efi
- path: /boot/efi
device: format-efi
type: mount
id: mount-efi
# Separate /boot Partition (2GB, Not in LVM)
- device: disk-nvme
size: 2147483648 # 2GB Boot Partition
wipe: superblock
flag: ‘’
preserve: false
grub_device: false
type: partition
id: partition-boot
- fstype: ext4
volume: partition-boot
preserve: false
type: format
id: format-boot
- path: /boot
device: format-boot
type: mount
id: mount-boot
# Use all remaining space for LVM
- device: disk-nvme
size: -1 # Takes all remaining space
wipe: superblock
preserve: false
type: partition
id: partition-lvm
# Create LVM Volume Group
- volume: partition-lvm
preserve: false
type: lvm_volgroup
id: vg-root
name: vg-root
# Create Logical Volume for Swap (8GB)
- volgroup: vg-root
name: lv-swap
size: 8589934592B # 8GB Swap
wipe: superblock
preserve: false
type: lvm_partition
id: lv-swap
# Create Logical Volume for Root (
/
) Using Remaining LVM Space
- volgroup: vg-root
name: lv-root
size: -1 # Uses all remaining LVM space
wipe: superblock
preserve: false
type: lvm_partition
id: lv-root
# Format root partition
- fstype: ext4
volume: lv-root
preserve: false
type: format
id: format-root
# Mount root filesystem
- path: /
device: format-root
type: mount
id: mount-root
# Format and mount swap inside LVM
- fstype: swap
volume: lv-swap
preserve: false
type: format
id: format-swap
- path: ‘’
device: format-swap
type: mount
id: mount-swap
T