]> git.ipfire.org Git - ipfire-2.x.git/commit
azure: Abort script when no instance ID can be retrieved
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Jan 2020 17:23:12 +0000 (17:23 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 21 Jan 2020 19:32:07 +0000 (19:32 +0000)
commit26eab1fe3e5ed74013420e077a112a012eeab4f6
tree9f395d47ca9db93889c5de1ff1768f145dcdef0a
parentb3e3c818958f86ae2612d626f26232209a2b5ee9
azure: Abort script when no instance ID can be retrieved

We cannot reliably determine if a system is running on Hyper-V
on a private server or on the Azure Cloud.

Therefore, we will have to try to retrieve an IP address
with DHCP and try to connect to the metadata service. If either
of those things is not successful, we will just continue with
the setup process as usual.

So cloud instances should be automatically configured now and
all other systems will continue to boot and call the setup
wizard as usual.

Fixes: #12272
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/helper/azure-setup