fix(set_lsb_release): Make sure $ROOT/etc exists.

Useful for generating a root filesystem overlay that catalyst can apply.
This commit is contained in:
Michael Marineau 2013-08-05 22:38:34 -04:00
parent ff6af5ea8f
commit a21a545f2e

View File

@ -67,6 +67,7 @@ fi
# COREOS_RELEASE_TRACK and COREOS_RELEASE_VERSION are used by the software # COREOS_RELEASE_TRACK and COREOS_RELEASE_VERSION are used by the software
# update service. # update service.
# DISTRIB_* are the standard names for the same values. # DISTRIB_* are the standard names for the same values.
sudo mkdir -p "${ROOT_FS_DIR}/etc"
sudo_clobber "${ROOT_FS_DIR}/etc/lsb-release" <<EOF sudo_clobber "${ROOT_FS_DIR}/etc/lsb-release" <<EOF
DISTRIB_ID=$COREOS_VERSION_NAME DISTRIB_ID=$COREOS_VERSION_NAME
DISTRIB_RELEASE=$COREOS_VERSION_STRING DISTRIB_RELEASE=$COREOS_VERSION_STRING