prerun: did not use "busybox readlink" 05/52405/2
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 30 Jun 2015 01:25:25 +0000 (10:25 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Mon, 23 Nov 2015 11:55:36 +0000 (20:55 +0900)
"busybox readlink -f" can not identify absolute path for nonexistent file.
So, we do not use "busybox readlink". It is safe now since no symbolic links
are used in files path that files are used in prerun script.

Change-Id: Ifae058b490a1ebee9532f89a53eebf43e1107dd7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 3a71b1b13da6df0f63faaa9a654d20ea15134786)

filesystem/etc/emulator/prerun.d/generate-emulator-env.sh
filesystem/etc/emulator/prerun.d/set-model-config.sh

index 33502676f9b79f002b64e36aba69c1b837ef1ba2..c26f3e7129a1cb9242d4b6a89dfcd0d621adebfe 100644 (file)
@@ -5,7 +5,7 @@ else
 fi
 
 CMDLINE=/proc/cmdline
-EMULATOR_ENV=$(readlink -f $NEW_ROOT/etc/profile.d/emulator_env.sh)
+EMULATOR_ENV=$NEW_ROOT/etc/profile.d/emulator_env.sh
 
 ##### network proxy environments
 echo -e "*** Generating network proxy env"
index 638259a9c903153ca95de18598d5422c11182d1a..c8db2a628ff665cc3c29f74a9f3cce39eb4e4644 100644 (file)
@@ -6,7 +6,7 @@ fi
 
 
 CMDLINE=/proc/cmdline
-XML=$(readlink -f $NEW_ROOT/etc/config/model-config.xml)
+XML=$NEW_ROOT/etc/config/model-config.xml
 
 echo -e "*** Setting model-config.xml"