Skip to content

Commit

Permalink
Merge pull request #91 from flatcar/kai/proxmox-support
Browse files Browse the repository at this point in the history
Draft for Proxmox support
  • Loading branch information
tormath1 authored Nov 12, 2024
2 parents f3c80fb + 2607689 commit c9de038
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Flatcar DigitalOcean Network Agent
Description=Flatcar Afterburn network service
DefaultDependencies=false
Before=initrd.target
After=systemd-networkd.service initrd-root-fs.target
Expand Down
2 changes: 2 additions & 0 deletions dracut/30ignition/flatcar-metadata-hostname.service
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ ConditionKernelCommandLine=|flatcar.oem.id=vultr
# Addition:
ConditionKernelCommandLine=|coreos.oem.id=packet
ConditionKernelCommandLine=|flatcar.oem.id=packet

ConditionKernelCommandLine=|flatcar.oem.id=hetzner
ConditionKernelCommandLine=|flatcar.oem.id=kubevirt
ConditionKernelCommandLine=|flatcar.oem.id=proxmoxve

OnFailure=emergency.target
OnFailureJobMode=isolate
Expand Down
4 changes: 2 additions & 2 deletions dracut/30ignition/ignition-generator
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ if [ "${nopxe}" = 1 ]; then
add_requires "disk-uuid.service" initrd.target
fi

if [[ $(cmdline_arg flatcar.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg coreos.oem.id) == "digitalocean" ]]; then
add_requires flatcar-digitalocean-network.service initrd.target
if [[ $(cmdline_arg flatcar.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg coreos.oem.id) == "digitalocean" ]] || [[ $(cmdline_arg flatcar.oem.id) == "proxmoxve" ]]; then
add_requires flatcar-afterburn-network.service initrd.target
fi
6 changes: 3 additions & 3 deletions dracut/30ignition/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ install() {
done

# Flatcar: add ignition-quench.service, sysroot-boot.service,
# flatcar-digitalocean-network.service, flatcar-static-network.service,
# flatcar-afterburn-network.service, flatcar-static-network.service,
# flatcar-metadata-hostname.service, flatcar-openstack-hostname.service
inst_simple "$moddir/ignition-quench.service" \
"$systemdsystemunitdir/ignition-quench.service"
inst_simple "$moddir/sysroot-boot.service" \
"$systemdsystemunitdir/sysroot-boot.service"
inst_simple "$moddir/flatcar-digitalocean-network.service" \
"$systemdsystemunitdir/flatcar-digitalocean-network.service"
inst_simple "$moddir/flatcar-afterburn-network.service" \
"$systemdsystemunitdir/flatcar-afterburn-network.service"
inst_simple "$moddir/flatcar-static-network.service" \
"$systemdsystemunitdir/flatcar-static-network.service"
inst_simple "$moddir/flatcar-metadata-hostname.service" \
Expand Down

0 comments on commit c9de038

Please sign in to comment.