summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index f84a5eb83b..0a1141a6f5 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -90,7 +90,9 @@ if [ ! -b /dev/loop0 ] ; then
90fi 90fi
91 91
92mkdir -p /tmp 92mkdir -p /tmp
93cat /proc/mounts > /etc/mtab 93if [ ! -L /etc/mtab ]; then
94 cat /proc/mounts > /etc/mtab
95fi
94 96
95disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") 97disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//")
96 98