Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft for Proxmox support #91

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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