Such links are useful for Tizen Flash Manager and allows to specify
partition images map using names not hardcoded numbers.
Change-Id: I3cbe53cdd2835461e43771d2eb70fd0d69edfc0e
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
"
WITHLIBS="
+/bin/ln
/usr/bin/bash
/usr/bin/cat
/usr/bin/cp
/usr/bin/mount
/usr/bin/sleep
/usr/bin/sync
+/usr/bin/tr
/usr/bin/umount
/usr/bin/dirname
/usr/bin/openssl
INFORM_PATH=/mnt/inform
HAL_PATH=/mnt/hal
+PARTLABEL_PATH=/dev/disk/by-partlabel
FS_RETRY_COUNT=10
SYNC="/bin/sync"
REBOOT="/sbin/reboot"
BLKID="/usr/sbin/blkid"
CP="/bin/cp"
+LN="/bin/ln"
+TR="/usr/bin/tr"
BOW_RESTORE="/sbin/bow-restore"
export SUPERFS=""
export PART_ROOTFS=""
"$MOUNT" -t devpts devpts /dev/pts
}
+#------------------------------------------------
+# create_disk_links
+#------------------------------------------------
+create_disk_links() {
+ "$MKDIR" -p ${PARTLABEL_PATH}
+ "$BLKID" -s PARTLABEL | "$TR" -s '":=' ' ' | while read dev p name; do
+ "$LN" -s ${dev} ${PARTLABEL_PATH}/${name}
+ done
+}
+
#------------------------------------------------
# mount_inform
#------------------------------------------------
mount_partitions
wait_find_partitions
+create_disk_links
mount_inform
restore_partitions
copy_hal_data