Skip to content

Commit

Permalink
fixup! overlay/fcos: pin legacy ifnames on existing machines
Browse files Browse the repository at this point in the history
  • Loading branch information
lucab committed Jun 24, 2020
1 parent fca5fcf commit 562e89a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion overlay.d/15fcos/usr/libexec/coreos-keep-legacy-ifnames
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ for f in /boot/loader/entries/*.conf; do
done

if [[ $injected -eq 1 ]]; then
if test -e /etc/systemd/network/99-default.link; then
if test -L /etc/systemd/network/99-default.link ||
test -e /etc/systemd/network/99-default.link; then
echo "unit /etc/systemd/network/99-default.link already exists, not touching it"
exit 0;
fi
Expand Down

0 comments on commit 562e89a

Please sign in to comment.