summaryrefslogtreecommitdiff
path: root/recipes-core/multitech
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2021-11-26 11:33:41 +0200
committerSerhii Voloshynov <serhii.voloshynov@globallogic.com>2021-11-29 13:56:32 +0200
commit3908aa3d25d583420d36976bc1a2f11f38b5410d (patch)
treeaadc48ac87b4ecca81e6fd48aa685315130e5254 /recipes-core/multitech
parentba35462741987d9aac561272ce72c8bc0ee650bd (diff)
downloadmeta-mlinux-3908aa3d25d583420d36976bc1a2f11f38b5410d.tar.gz
meta-mlinux-3908aa3d25d583420d36976bc1a2f11f38b5410d.tar.bz2
meta-mlinux-3908aa3d25d583420d36976bc1a2f11f38b5410d.zip
remove fstab manipulation
Diffstat (limited to 'recipes-core/multitech')
-rw-r--r--recipes-core/multitech/overlayfs-init-ubi/overlayfs.init17
1 files changed, 0 insertions, 17 deletions
diff --git a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
index 7fc7f7e..0000f29 100644
--- a/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
+++ b/recipes-core/multitech/overlayfs-init-ubi/overlayfs.init
@@ -128,25 +128,8 @@ do_rw_mount() {
done
}
-
-TMP=/var/volatile
-# Set the suffix number in /var/oem and /var/config to match root
-fix_volume_names() {
- if ! [[ $(cat /proc/cmdline) =~ root=ubi0:rootfs([0-9]+) ]] ; then
- loginfo "Cannot find root=ubi0:rootfs in /proc/cmdline"
- fi
- vol_suffix=${BASH_REMATCH[1]}
- echo $vol_suffix
- sed -r "s/(ubi0:(oem|config))([0-9]*)/\1${vol_suffix}/" /etc/fstab >${TMP}/fstab
- if ! cmp ${TMP}/fstab /etc/fstab ; then
- loginfo "Updating fstab with new volume names"
- cp ${TMP}/fstab /etc/fstab
- fi
-}
-
do_start() {
do_rw_mount
- fix_volume_names
}
case $1 in