Skip to content

Commit

Permalink
initrd-setup-root-after-ignition: Enable networking before the download
Browse files Browse the repository at this point in the history
For the OEM extension fallback download the networking was enabled, for
the "official" Flatcar extension download not.
Enable networkd and resolved like done for the OEM extension download.
  • Loading branch information
pothos committed Sep 20, 2023
1 parent 43ede97 commit 8febf6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dracut/99setup-root/initrd-setup-root-after-ignition
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ for NAME in $(grep -h -o '^[^#]*' /sysroot/etc/flatcar/enabled-sysext.conf /sysr
ACTIVE_EXT="/etc/flatcar/sysext/flatcar-${NAME}-${VERSION}.raw"
if [ ! -e "/sysroot/${ACTIVE_EXT}" ]; then
echo "Did not find ${ACTIVE_EXT}" >&2
systemctl start --quiet systemd-networkd systemd-resolved
download_and_verify "flatcar-${NAME}.raw"
mv "/sysroot/flatcar-${NAME}.raw" "/sysroot/${ACTIVE_EXT}"
fi
Expand Down

0 comments on commit 8febf6a

Please sign in to comment.