whitespace fixes
This commit is contained in:
@@ -12,55 +12,55 @@ clearpart --all --initlabel
|
|||||||
|
|
||||||
### Modify partition sizes for the virtual machine hardware.
|
### Modify partition sizes for the virtual machine hardware.
|
||||||
### Create primary system partitions.
|
### Create primary system partitions.
|
||||||
%{~ if length(partitions) == 1 && partitions[0].name == "autopart" ~}
|
%{ if length(partitions) == 1 && partitions[0].name == "autopart" ~}
|
||||||
%{~ if partitions[0].format.fstype == "lvm" ~}
|
%{ if partitions[0].format.fstype == "lvm" ~}
|
||||||
autopart --type=lvm
|
autopart --type=lvm
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{~ if partitions[0].format.fstype == "simple" ~}
|
%{ if partitions[0].format.fstype == "simple" ~}
|
||||||
autopart --type=plain
|
autopart --type=plain
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{~ if partitions[0].format.fstype == "" ~}
|
%{ if partitions[0].format.fstype == "" ~}
|
||||||
autopart --type=plain
|
autopart --type=plain
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{ else }
|
%{ else }
|
||||||
%{~ for partition in partitions ~}
|
%{ for partition in partitions ~}
|
||||||
%{~ if partition.format.fstype == "swap" ~}
|
%{ if partition.format.fstype == "swap" ~}
|
||||||
part swap --size=${partition.size}
|
part swap --size=${partition.size}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.mount.path == "/boot/efi" ~}
|
%{ if partition.mount.path == "/boot/efi" ~}
|
||||||
part ${partition.mount.path} --fstype vfat --size=${partition.size} --label=${partition.format.label}
|
part ${partition.mount.path} --fstype vfat --size=${partition.size} --label=${partition.format.label}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.mount.path != "" ~}
|
%{ if partition.mount.path != "" ~}
|
||||||
part ${partition.mount.path} --fstype ${partition.format.fstype} --size=${partition.size} --label=${partition.format.label} %{~ if partition.mount.options != "" ~}--fsoptions="${partition.mount.options}"%{~ endif ~}
|
part ${partition.mount.path} --fstype ${partition.format.fstype} --size=${partition.size} --label=${partition.format.label} %{~ if partition.mount.options != "" ~}--fsoptions="${partition.mount.options}"%{~ endif ~}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.volume_group != "" ~}
|
%{ if partition.volume_group != "" ~}
|
||||||
%{~ if partition.size == -1 ~}
|
%{ if partition.size == -1 ~}
|
||||||
part pv.${partition.volume_group} --size=100 --grow
|
part pv.${partition.volume_group} --size=100 --grow
|
||||||
|
|
||||||
%{~ else ~}
|
%{ else ~}
|
||||||
part pv.${partition.volume_group} --size=${partition.size}
|
part pv.${partition.volume_group} --size=${partition.size}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
### Create a logical volume management (LVM) group.
|
### Create a logical volume management (LVM) group.
|
||||||
### Modify logical volume sizes for the virtual machine hardware.
|
### Modify logical volume sizes for the virtual machine hardware.
|
||||||
%{~ for index, volume_group in lvm ~}
|
%{ for index, volume_group in lvm ~}
|
||||||
%{~ if partition.volume_group != "" ~}
|
%{ if partition.volume_group != "" ~}
|
||||||
volgroup ${volume_group.name} --pesize=4096 pv.${partition.volume_group}
|
volgroup ${volume_group.name} --pesize=4096 pv.${partition.volume_group}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
### Create logical volumes.
|
### Create logical volumes.
|
||||||
%{~ for partition in volume_group.partitions ~}
|
%{ for partition in volume_group.partitions ~}
|
||||||
%{~ if partition.format.fstype == "swap" ~}
|
%{ if partition.format.fstype == "swap" ~}
|
||||||
logvol swap --fstype ${partition.format.fstype} --name=${partition.name} --vgname=${volume_group.name} --size=${partition.size} --label=${partition.format.label}
|
logvol swap --fstype ${partition.format.fstype} --name=${partition.name} --vgname=${volume_group.name} --size=${partition.size} --label=${partition.format.label}
|
||||||
%{~ else ~}
|
%{ else ~}
|
||||||
logvol ${partition.mount.path} %{ if partition.format.fstype == "fat32" } --fstype vfat %{ else } --fstype ${partition.format.fstype} %{ endif } %{ if partition.size != -1 } --size=${partition.size} %{ else } --size=100 --grow %{ endif } --name=${partition.name} --vgname=${volume_group.name} --label=${partition.format.label} %{ if partition.mount.options != "" ~} --fsoptions="${partition.mount.options}" %{~ endif ~}
|
logvol ${partition.mount.path} %{ if partition.format.fstype == "fat32" } --fstype vfat %{ else } --fstype ${partition.format.fstype} %{ endif } %{ if partition.size != -1 } --size=${partition.size} %{ else } --size=100 --grow %{ endif } --name=${partition.name} --vgname=${volume_group.name} --label=${partition.format.label} %{ if partition.mount.options != "" ~} --fsoptions="${partition.mount.options}" %{~ endif ~}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endif }
|
%{ endif }
|
||||||
|
|||||||
@@ -12,55 +12,55 @@ clearpart --all --initlabel
|
|||||||
|
|
||||||
### Modify partition sizes for the virtual machine hardware.
|
### Modify partition sizes for the virtual machine hardware.
|
||||||
### Create primary system partitions.
|
### Create primary system partitions.
|
||||||
%{~ if length(partitions) == 1 && partitions[0].name == "autopart" ~}
|
%{ if length(partitions) == 1 && partitions[0].name == "autopart" ~}
|
||||||
%{~ if partitions[0].format.fstype == "lvm" ~}
|
%{ if partitions[0].format.fstype == "lvm" ~}
|
||||||
autopart --type=lvm
|
autopart --type=lvm
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{~ if partitions[0].format.fstype == "simple" ~}
|
%{ if partitions[0].format.fstype == "simple" ~}
|
||||||
autopart --type=plain
|
autopart --type=plain
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{~ if partitions[0].format.fstype == "" ~}
|
%{ if partitions[0].format.fstype == "" ~}
|
||||||
autopart --type=plain
|
autopart --type=plain
|
||||||
%{ endif }
|
%{ endif }
|
||||||
%{ else }
|
%{ else }
|
||||||
%{~ for partition in partitions ~}
|
%{ for partition in partitions ~}
|
||||||
%{~ if partition.format.fstype == "swap" ~}
|
%{ if partition.format.fstype == "swap" ~}
|
||||||
part swap --size=${partition.size}
|
part swap --size=${partition.size}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.mount.path == "/boot/efi" ~}
|
%{ if partition.mount.path == "/boot/efi" ~}
|
||||||
part ${partition.mount.path} --fstype vfat --size=${partition.size} --label=${partition.format.label}
|
part ${partition.mount.path} --fstype vfat --size=${partition.size} --label=${partition.format.label}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.mount.path != "" ~}
|
%{ if partition.mount.path != "" ~}
|
||||||
part ${partition.mount.path} --fstype ${partition.format.fstype} --size=${partition.size} --label=${partition.format.label} %{~ if partition.mount.options != "" ~}--fsoptions="${partition.mount.options}"%{~ endif ~}
|
part ${partition.mount.path} --fstype ${partition.format.fstype} --size=${partition.size} --label=${partition.format.label} %{~ if partition.mount.options != "" ~}--fsoptions="${partition.mount.options}"%{~ endif ~}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ if partition.volume_group != "" ~}
|
%{ if partition.volume_group != "" ~}
|
||||||
%{~ if partition.size == -1 ~}
|
%{ if partition.size == -1 ~}
|
||||||
part pv.${partition.volume_group} --size=100 --grow
|
part pv.${partition.volume_group} --size=100 --grow
|
||||||
|
|
||||||
%{~ else ~}
|
%{ else ~}
|
||||||
part pv.${partition.volume_group} --size=${partition.size}
|
part pv.${partition.volume_group} --size=${partition.size}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
### Create a logical volume management (LVM) group.
|
### Create a logical volume management (LVM) group.
|
||||||
### Modify logical volume sizes for the virtual machine hardware.
|
### Modify logical volume sizes for the virtual machine hardware.
|
||||||
%{~ for index, volume_group in lvm ~}
|
%{ for index, volume_group in lvm ~}
|
||||||
%{~ if partition.volume_group != "" ~}
|
%{ if partition.volume_group != "" ~}
|
||||||
volgroup ${volume_group.name} --pesize=4096 pv.${partition.volume_group}
|
volgroup ${volume_group.name} --pesize=4096 pv.${partition.volume_group}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
### Create logical volumes.
|
### Create logical volumes.
|
||||||
%{~ for partition in volume_group.partitions ~}
|
%{ for partition in volume_group.partitions ~}
|
||||||
%{~ if partition.format.fstype == "swap" ~}
|
%{ if partition.format.fstype == "swap" ~}
|
||||||
logvol swap --fstype ${partition.format.fstype} --name=${partition.name} --vgname=${volume_group.name} --size=${partition.size} --label=${partition.format.label}
|
logvol swap --fstype ${partition.format.fstype} --name=${partition.name} --vgname=${volume_group.name} --size=${partition.size} --label=${partition.format.label}
|
||||||
%{~ else ~}
|
%{ else ~}
|
||||||
logvol ${partition.mount.path} %{ if partition.format.fstype == "fat32" } --fstype vfat %{ else } --fstype ${partition.format.fstype} %{ endif } %{ if partition.size != -1 } --size=${partition.size} %{ else } --size=100 --grow %{ endif } --name=${partition.name} --vgname=${volume_group.name} --label=${partition.format.label} %{ if partition.mount.options != "" ~} --fsoptions="${partition.mount.options}" %{~ endif ~}
|
logvol ${partition.mount.path} %{ if partition.format.fstype == "fat32" } --fstype vfat %{ else } --fstype ${partition.format.fstype} %{ endif } %{ if partition.size != -1 } --size=${partition.size} %{ else } --size=100 --grow %{ endif } --name=${partition.name} --vgname=${volume_group.name} --label=${partition.format.label} %{ if partition.mount.options != "" ~} --fsoptions="${partition.mount.options}" %{~ endif ~}
|
||||||
|
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endif ~}
|
%{ endif ~}
|
||||||
%{~ endfor ~}
|
%{ endfor ~}
|
||||||
%{~ endif }
|
%{ endif }
|
||||||
|
|||||||
Reference in New Issue
Block a user