~curtin-dev/curtin/trunk

« back to all changes in this revision

Viewing changes to examples/tests/uefi_lvmroot.yaml

  • Committer: Ryan Harper
  • Date: 2017-11-30 21:14:32 UTC
  • mfrom: (541.4.9 trunk.lvmroot)
  • Revision ID: ryan.harper@canonical.com-20171130211432-cn0nbfydoly2trqk
vmtests: exercise rootfs over an lvm logical volume

- modify mkfs to handle key=value parameter replacement for mkfs.xfs to
  control the uuid value of the filesystem
- Allow templating of the lvmroot yamls to specify different rootfs format
  types. This allow for testing with multiple fstypes without duplicating
  input yaml
- Fix a lurking CURTIN_REUSE_TOPDIR=1 bug under uefi mode where we attempt
  to rewrite grub.conf always
- Add a specific uefi_lvmroot configuration to match user issue from
  Bug #1731490 
- Update vgcreate, lvcreate invocations to zero and wipe target devices
  and volumes where possible (> trusty) which eliminates the scary
  warning about detecting filesystem signatures on lv creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
showtrace: true
 
2
storage:
 
3
  config:
 
4
  - grub_device: true
 
5
    id: sda
 
6
    model: PERC 6/i
 
7
    name: sda
 
8
    ptable: gpt
 
9
    serial: '4cd98c5c-7761-4179'
 
10
    type: disk
 
11
    wipe: superblock
 
12
  - device: sda
 
13
    id: sda-part1
 
14
    name: sda-part1
 
15
    number: 1
 
16
    offset: 4194304B
 
17
    size: 96468992B
 
18
    type: partition
 
19
    uuid: 88a0df20-c224-4637-ad93-1d932e065a77
 
20
    wipe: superblock
 
21
  - device: sda
 
22
    id: sda-part2
 
23
    name: sda-part2
 
24
    number: 2
 
25
    size: 499122176B
 
26
    type: partition
 
27
    uuid: 1df4c42e-a94c-41d9-887f-9f2139425029
 
28
    wipe: superblock
 
29
  - device: sda
 
30
    id: sda-part3
 
31
    name: sda-part3
 
32
    number: 3
 
33
    size: 8G
 
34
    type: partition
 
35
    uuid: 14870e21-4ef7-4058-baf1-8ae1148bb1b0
 
36
    wipe: superblock
 
37
  - devices:
 
38
    - sda-part3
 
39
    id: vg0
 
40
    name: vg0
 
41
    type: lvm_volgroup
 
42
    uuid: 1cae2f4d-ea47-45df-9d33-d1b77f23ee3f
 
43
  - id: vg0-lv0
 
44
    name: lv0
 
45
    size: 7.5G
 
46
    type: lvm_partition
 
47
    volgroup: vg0
 
48
  - fstype: vfat
 
49
    id: sda-part1_format
 
50
    label: ''
 
51
    type: format
 
52
    uuid: 0bea118f-558e-4235-8547-644c76078066
 
53
    volume: sda-part1
 
54
  - fstype: __BOOTFS_FORMAT__
 
55
    id: sda-part2_format
 
56
    label: ''
 
57
    type: format
 
58
    uuid: a45a16b8-018c-4a24-b9d8-aee19ca4566e
 
59
    volume: sda-part2
 
60
  - fstype: __ROOTFS_FORMAT__
 
61
    id: vg0-lv0_format
 
62
    label: ''
 
63
    type: format
 
64
    uuid: 48691520-0025-4e6c-a7c0-50bb0ac30713
 
65
    volume: vg0-lv0
 
66
  - device: vg0-lv0_format
 
67
    id: vg0-lv0_mount
 
68
    options: ''
 
69
    path: /
 
70
    type: mount
 
71
  - device: sda-part2_format
 
72
    id: sda-part2_mount
 
73
    options: ''
 
74
    path: /boot
 
75
    type: mount
 
76
  - device: sda-part1_format
 
77
    id: sda-part1_mount
 
78
    options: ''
 
79
    path: /boot/efi
 
80
    type: mount
 
81
  version: 1
 
82