summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-22 13:41:04 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-22 13:41:04 (EDT)
commit72d25350a43a928c9f76a253d5bf1f7f71d4b31d (patch)
treeda91a062e5461e865c935a73a33c8402f128e22f /lib/cmd
parenta4c31d2f8e529c740506609fc6a4782a9fdfa03c (diff)
install: Don't overwrite os-release
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/install.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh
index 456a0b3..20bc32a 100644
--- a/lib/cmd/install.sh
+++ b/lib/cmd/install.sh
@@ -110,7 +110,10 @@ cmd_install_main()
profile_configure_system_foreign "${chroot}"
fi
- profile_get_os_release "${arch}" "${plat}" >"${chroot}/etc/os-release"
+ if ! [ -e "${chroot}/etc/os-release" ]; then
+ profile_get_os_release "${arch}" "${plat}" \
+ >"${chroot}/etc/os-release"
+ fi
}
cmd_install_find_pkgs()