From ed19e9f559dfaf77b50fb99f62fb83de92790a56 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 13 Mar 2014 12:05:33 -0700 Subject: [PATCH] fix(build_library): use ln -sf instead of if we don't need an if statement when we can force. --- build_library/set_lsb_release | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build_library/set_lsb_release b/build_library/set_lsb_release index 0cc858adb3..790c6b6244 100755 --- a/build_library/set_lsb_release +++ b/build_library/set_lsb_release @@ -112,10 +112,7 @@ EOF # The first time through the image, we have an os-release from a package, # the second time through this script, we don't, so we need to test if it's # present before trying to remove it. -if [[ -a "${ROOT_FS_DIR}/etc/os-release" ]] ; then - sudo rm "${ROOT_FS_DIR}/etc/os-release" -fi -sudo ln -s "../usr/share/coreos/os-release" "${ROOT_FS_DIR}/etc/os-release" +sudo ln -sf "../usr/share/coreos/os-release" "${ROOT_FS_DIR}/etc/os-release" # Create the defaults for the coreos configuration files in the usr directory sudo_clobber "${ROOT_FS_DIR}/usr/share/coreos/release" <