If HAL layers are packed by a separated image, in order to provide the
latest HAL-related files, they should be copied from HAL image instead
of being accessed by mount point, and those copying should be
conducted at every boot-time.
To this end, this applies the process into do_copy checking file path
has 'hal' prefix and thus adding it to the list.
Change-Id: I144e5f1e32f6809accb0b3b3974ef6de4c8addac
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
fi
INITRD_ROOT="/mnt/initrd-recovery"
+HAL_LIST="${INITRD_ROOT}/hal/.hal_list"
OBJECTS_SPECIFY_DIR="@INITRD_RECOVERY_INSTALL_DROPIN_DIR@"
OBJECTS_DIRECTORY=
/usr/sbin
/usr/lib
/var/log
+/hal
"
BASE_DIR_SYMLINKS="
src=$1
dst="$INITRD_ROOT/$src"
+ path_prefix=$(echo $src | "$CUT" -d '/' -f 2)
+
+ if [ "$path_prefix" == "hal" ]; then
+ remain=$(echo $src | "$SED" 's/\/hal\///')
+ echo "$remain" >> $HAL_LIST
+ fi
+
if [ ! -e "$src" -o -e "$dst" ]; then
return
fi