diff options
author | wchang kim <wchang.kim@samsung.com> | 2017-04-07 16:05:08 +0900 |
---|---|---|
committer | wchang kim <wchang.kim@samsung.com> | 2017-04-07 16:05:08 +0900 |
commit | 035e38bca83117862d0a09572b238636e631a27e (patch) | |
tree | 03f5ac973ceccc346b68129b828f290d9714b451 | |
parent | a334d2c2c81c3f0b5cd131236202caf22590a1ea (diff) | |
download | system-plugin-035e38bca83117862d0a09572b238636e631a27e.tar.gz system-plugin-035e38bca83117862d0a09572b238636e631a27e.tar.bz2 system-plugin-035e38bca83117862d0a09572b238636e631a27e.zip |
init.wrapper: Adding to mount /usr/lib/modules.submit/tizen/20170409.222041accepted/tizen/unified/20170410.155513
Change-Id: I60244ffcabe7c424799e0b919936b7f89fa91f6a
-rw-r--r-- | scripts/init.wrapper | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/init.wrapper b/scripts/init.wrapper index 56aef97..082be47 100644 --- a/scripts/init.wrapper +++ b/scripts/init.wrapper @@ -4,6 +4,7 @@ PATH=/bin:/usr/bin:/sbin:/usr/sbin SYSTEM_MNT=/opt SYS_BLK_DIR=/sys/class/block +MODULES_MNT=/usr/lib/modules mount -o nosuid,strictatime,mode=755 -t devtmpfs devtmpfs /dev mount -o nosuid,noexec,nodev -t sysfs sysfs /sys @@ -16,6 +17,12 @@ then ROOTFS=`/sbin/blkid -t PARTLABEL=rootfs -o device` fi +MODULES=`/sbin/blkid -L modules` +if [ x$MODULES = "x" ] +then + MODULES=`/sbin/blkid -t PARTLABEL=module -o device` +fi + DATAFS=`/sbin/blkid -L system-data` if [ x$DATAFS = "x" ] then @@ -33,6 +40,14 @@ else /usr/bin/mount -o remount,ro $ROOTFS fi +if [ x$MODULES = "x" ] + echo "Warning : There is no modules partition." +then + /sbin/resize2fs -f $MODULES + /sbin/fsck -y $MODULES + /bin/mount $MODULES $MODULES_MNT +fi + if [ x$DATAFS = "x" ] then echo "Warning : There is no system-data partition." |