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 21, 2023
1 parent 7cd68f5 commit 6650fe4
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 @@ -130,6 +130,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 6650fe4

Please sign in to comment.