Compare commits
2 Commits
e18ad4c2e3
...
2ad3de479c
Author | SHA1 | Date | |
---|---|---|---|
2ad3de479c | |||
9a3274f598 |
@ -57,6 +57,11 @@ for tty in $( echo -e "$( sed 's/ /\n/g' <<<"${active_ttys[@]}" )" | sort ); do
|
|||||||
if grep -q "${tty_type}" <<<"${target_consoles}"; then
|
if grep -q "${tty_type}" <<<"${target_consoles}"; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${tty_type} == "ttyS" ]]; then
|
||||||
|
# Add 115200 baud rate
|
||||||
|
tty="${tty},115200n8"
|
||||||
|
fi
|
||||||
target_consoles="${target_consoles} console=${tty}"
|
target_consoles="${target_consoles} console=${tty}"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -658,11 +663,11 @@ partprobe >&2 || true
|
|||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating LVM PV... "
|
echo -n "Creating LVM PV... "
|
||||||
yes | pvcreate -ffy ${target_disk}3 >&2
|
yes | pvcreate -ffy ${target_disk}4 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating LVM VG 'vgx'... "
|
echo -n "Creating LVM VG 'vgx'... "
|
||||||
yes | vgcreate vgx ${target_disk}3 >&2
|
yes | vgcreate vgx ${target_disk}4 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating root logical volume (${size_root_lv}GB)... "
|
echo -n "Creating root logical volume (${size_root_lv}GB)... "
|
||||||
@ -694,11 +699,11 @@ yes | mkswap -f /dev/vgx/swap >&2
|
|||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating filesystem on boot partition (ext2)... "
|
echo -n "Creating filesystem on boot partition (ext2)... "
|
||||||
yes | mkfs.ext2 ${target_disk}2 >&2
|
yes | mkfs.ext2 ${target_disk}3 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Creating filesystem on ESP partition (vfat)... "
|
echo -n "Creating filesystem on ESP partition (vfat)... "
|
||||||
yes | mkdosfs -F32 ${target_disk}1 >&2
|
yes | mkdosfs -F32 ${target_disk}2 >&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
vgchange -ay >&2
|
vgchange -ay >&2
|
||||||
@ -708,10 +713,10 @@ echo -n "Mounting disks on temporary target '${target}'... "
|
|||||||
mount /dev/vgx/root ${target} >&2
|
mount /dev/vgx/root ${target} >&2
|
||||||
mkdir -p ${target}/boot >&2
|
mkdir -p ${target}/boot >&2
|
||||||
chattr +i ${target}/boot >&2
|
chattr +i ${target}/boot >&2
|
||||||
mount ${target_disk}2 ${target}/boot >&2
|
mount ${target_disk}3 ${target}/boot >&2
|
||||||
mkdir -p ${target}/boot/efi >&2
|
mkdir -p ${target}/boot/efi >&2
|
||||||
chattr +i ${target}/boot/efi >&2
|
chattr +i ${target}/boot/efi >&2
|
||||||
mount ${target_disk}1 ${target}/boot/efi >&2
|
mount ${target_disk}2 ${target}/boot/efi >&2
|
||||||
mkdir -p ${target}/var/lib/ceph >&2
|
mkdir -p ${target}/var/lib/ceph >&2
|
||||||
chattr +i ${target}/var/lib/ceph >&2
|
chattr +i ${target}/var/lib/ceph >&2
|
||||||
mount /dev/vgx/ceph ${target}/var/lib/ceph >&2
|
mount /dev/vgx/ceph ${target}/var/lib/ceph >&2
|
||||||
@ -812,8 +817,8 @@ target_interface=\${1}
|
|||||||
pvcbootstrapd_checkin_uri="${pvcbootstrapd_checkin_uri}"
|
pvcbootstrapd_checkin_uri="${pvcbootstrapd_checkin_uri}"
|
||||||
macaddr=\$( ip -br link show \${target_interface} | awk '{ print \$3 }' )
|
macaddr=\$( ip -br link show \${target_interface} | awk '{ print \$3 }' )
|
||||||
ipaddr=\$( ip -br address show \${target_interface} | awk '{ print \$3 }' | awk -F '/' '{ print \$1 }' )
|
ipaddr=\$( ip -br address show \${target_interface} | awk '{ print \$3 }' | awk -F '/' '{ print \$1 }' )
|
||||||
bmc_macaddr=\$( ipmitool lan print | grep 'MAC Address ' | awk '{ print $NF }' )
|
bmc_macaddr=\$( ipmitool lan print | grep 'MAC Address ' | awk '{ print \$NF }' )
|
||||||
bmc_ipaddr=\$( ipmitool lan print | grep 'IP Address ' | awk '{ print $NF }' )
|
bmc_ipaddr=\$( ipmitool lan print | grep 'IP Address ' | awk '{ print \$NF }' )
|
||||||
if [[ -f /etc/pvc-install.pvcbootstrapd_completed ]]; then
|
if [[ -f /etc/pvc-install.pvcbootstrapd_completed ]]; then
|
||||||
# The third boot, when all pvcprovisionerd plugins have been run (this script will henceforth do nothing)
|
# The third boot, when all pvcprovisionerd plugins have been run (this script will henceforth do nothing)
|
||||||
action="system-boot_bootstrap-completed"
|
action="system-boot_bootstrap-completed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user