Fix LVM, partitions
This commit is contained in:
parent
646bad974b
commit
63060451bc
@ -36,11 +36,11 @@ zerombr
|
|||||||
# Partition clearing information
|
# Partition clearing information
|
||||||
clearpart --all --initlabel --disklabel=gpt
|
clearpart --all --initlabel --disklabel=gpt
|
||||||
# Disk partitioning information
|
# Disk partitioning information
|
||||||
part prepboot --fstype="prepboot" --size=4
|
part prepboot --fstype="prepboot" --size=4 --onpart=vda1
|
||||||
part biosboot --fstype="biosboot" --size=1
|
part biosboot --fstype="biosboot" --size=1 --onpart=vda2
|
||||||
part /boot/efi --fstype="efi" --size=100
|
part /boot/efi --fstype="efi" --size=100 --onpart=vda3
|
||||||
part /boot --fstype="xfs" --size=1000 --label=boot
|
part /boot --fstype="xfs" --size=1000 --label=boot --onpart=vda4
|
||||||
part pv.01 --grow --ondisk=vda --size=1
|
part pv.01 --grow --size=1 --onpart=vda5
|
||||||
volgroup rocky pv.01
|
volgroup rocky pv.01
|
||||||
logvol / --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0" --name=root --vgname=rocky
|
logvol / --grow --size=8000 --mkfsoptions="-m bigtime=0,inobtcount=0" --name=root --vgname=rocky
|
||||||
|
|
||||||
@ -320,6 +320,9 @@ LSBwb3dlci1zdGF0ZS1jaGFuZ2UKCg=="
|
|||||||
|
|
||||||
base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg
|
base64 -d <<<"$OCICLOUDCFG" >> /etc/cloud/cloud.cfg.d/99_oci.cfg
|
||||||
|
|
||||||
|
# Remove system.devices because Oracle does things.
|
||||||
|
rm -fv /etc/lvm/devices/system.devices
|
||||||
|
|
||||||
# Rerun dracut for the installed kernel (not the running kernel):
|
# Rerun dracut for the installed kernel (not the running kernel):
|
||||||
KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n')
|
KERNEL_VERSION=$(rpm -q kernel --qf '%%{V}-%%{R}.%%{arch}\n')
|
||||||
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
dracut -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
|
||||||
|
Loading…
Reference in New Issue
Block a user