Skip to content

Commit

Permalink
debian: Cleanup systemd-networkd config
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jun 3, 2024
1 parent 8dd9a11 commit cea280a
Showing 1 changed file with 8 additions and 97 deletions.
105 changes: 8 additions & 97 deletions images/debian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,12 +1309,9 @@ actions:
#!/bin/sh
set -eux
# Disable networkd (unused)
systemctl mask systemd-networkd.service
systemctl mask systemd-networkd.socket
systemctl mask systemd-networkd-wait-online.service
releases:
- buster
# Enable networkd
systemctl enable systemd-networkd.service
systemctl enable systemd-networkd.socket
- trigger: post-packages
action: |-
Expand All @@ -1325,102 +1322,22 @@ actions:
# startup. This only happens on debian/bullseye/cloud images.
systemctl disable systemd-networkd.socket
systemctl disable systemd-networkd.service
types:
- container
variants:
- cloud
releases:
- bullseye

- trigger: post-packages
action: |-
#!/bin/sh
set -eu
systemctl enable systemd-networkd.socket
systemctl enable systemd-networkd.service
types:
- container
variants:
- default
releases:
- bullseye

- trigger: post-packages
action: |-
#!/bin/sh
set -eu
systemctl enable systemd-networkd.socket
systemctl enable systemd-networkd.service
types:
- container
variants:
- cloud
releases:
- trixie
- sid

- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Enable networkd socket
systemctl enable systemd-networkd.socket
types:
- container
releases:
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Enable networkd
systemctl enable systemd-networkd.service
types:
- vm
variants:
- default
releases:
- bullseye
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Enable networkd
systemctl enable systemd-networkd.service
types:
- vm
variants:
- cloud
releases:
- bookworm
- sid
- trixie

- trigger: post-packages
action: |-
#!/bin/sh
set -eux
# Disable networkd
systemctl disable systemd-networkd.service
types:
- vm
variants:
- cloud
# Disable networkd (unused)
systemctl mask systemd-networkd.service
systemctl mask systemd-networkd.socket
systemctl mask systemd-networkd-wait-online.service
releases:
- bullseye
- buster

- trigger: post-packages
action: |-
Expand Down Expand Up @@ -1496,12 +1413,6 @@ actions:
sed -i "s#root=[^ ]*#root=${DISTROBUILDER_ROOT_UUID}#g" /boot/grub/grub.cfg
types:
- vm
releases:
- buster
- bullseye
- sid
- bookworm
- trixie

- trigger: post-files
action: |-
Expand Down

0 comments on commit cea280a

Please sign in to comment.