CoreOS: refuse --coreos if we're not under CoreOS
This commit is contained in:
parent
fe3d5c50e8
commit
1f2543cfeb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue