From 04836b5ae659c2ad7b558787b670c336bea22a5d Mon Sep 17 00:00:00 2001 From: Milton Miller Date: Fri, 5 Feb 2016 11:06:39 -0600 Subject: obmc-initfs: shutdown: don't follow links When creating the synlink for the u-boot-env image, don't follow any symlinks. Signed-off-by: Milton Miller --- .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh index cc076fdc0..d29db265d 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh @@ -27,7 +27,7 @@ set +x if test -s /run/fw_env -a -c /run/mtd:u-boot-env -a ! -e /image-u-boot-env && ! cmp /run/mtd:u-boot-env /run/fw_env then - ln -s /run/fw_env /image-u-boot-env + ln -sn /run/fw_env /image-u-boot-env fi if test -x /update && ls image-* > /dev/null 2>&1 -- cgit v1.2.1