Check for nixos and exit if found
This commit is contained in:
parent
e02d690a8b
commit
884b7b62bd
2 changed files with 7 additions and 0 deletions
|
|
@ -345,6 +345,12 @@ def hifi2_sof_config():
|
|||
#######################################################################################
|
||||
# GENERAL FUNCTIONS #
|
||||
#######################################################################################
|
||||
def check_nix():
|
||||
with open("/etc/os-release") as os:
|
||||
if "ID=nixos" in os.read():
|
||||
print_error("NixOS is not supported")
|
||||
exit(1)
|
||||
|
||||
def check_arch():
|
||||
# dmi doesnt exist on arm chromebooks
|
||||
if not path_exists("/sys/devices/virtual/dmi/id/"):
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ def process_args():
|
|||
return parser.parse_args()
|
||||
|
||||
if __name__ == "__main__":
|
||||
check_nix()
|
||||
check_arch()
|
||||
args = process_args()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue