#!/usr/bin/python

# PROVIDE: isi_create_local_xml
# KEYWORD: factory
# REQUIRE: isi_create_lni_xml
# BEFORE: isi_first_boot

import os

import isi.config.arrcfg as ac

if not os.path.exists("/etc/ifs/local.xml"):
    ac.create_local_xml()

# Regardless of what happened, make sure this file is no longer there...
# File-not-found errors with the unlink are expected.  Other errors ignorable.
try:
    os.unlink(ac.ARR_REUSE_NODE_GUID)
except:
    pass
