CoreOS: refuse --coreos if we're not under CoreOS

This commit is contained in:
Stéphane Lesimple 2018-01-15 11:31:53 +01:00
parent fe3d5c50e8
commit 1f2543cfeb
1 changed files with 4 additions and 0 deletions

View File

@ -527,6 +527,10 @@ fi
# coreos mode
if [ "$opt_coreos" = 1 ]; then
if ! which coreos-install || ! which toolbox; then
_warn "CoreOS mode asked, but we're not under CoreOS!"
exit 255
fi
_warn "CoreOS mode, starting an ephemeral toolbox to launch the script"
load_msr
load_cpuid