build: scripts: add FS label to modules.img 71/121771/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 29 Mar 2017 02:25:27 +0000 (11:25 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 29 Mar 2017 02:25:29 +0000 (11:25 +0900)
In Tizen ramdisk, it required proper FS label to mount properly, so
this patch adds FS label to modules.img.

Change-Id: I91089822ff348897c6fd915e43da0f475f51a1f1
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
scripts/mkmodimg.sh

index a52ee82..83fd262 100755 (executable)
@@ -36,7 +36,7 @@ else
        cd ${TMP_DIR}/lib
        mkdir -p tmp
        dd if=/dev/zero of=${BIN_NAME} count=${BIN_SIZE} bs=1024
-       mkfs.ext4 -q -F -t ext4 -b 1024 ${BIN_NAME}
+       mkfs.ext4 -q -F -t ext4 -b 1024 ${BIN_NAME} -L modules
        sudo -n mount -t ext4 ${BIN_NAME} ./tmp -o loop
        if [ "$?" != "0" ]; then
                echo "Failed to mount (or sudo)"