diff options
author | P. 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) |
commit | 72d25350a43a928c9f76a253d5bf1f7f71d4b31d (patch) | |
tree | da91a062e5461e865c935a73a33c8402f128e22f | |
parent | a4c31d2f8e529c740506609fc6a4782a9fdfa03c (diff) |
install: Don't overwrite os-release
-rw-r--r-- | lib/cmd/install.sh | 5 |
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() |