summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-efi.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index a3ed74b989..fc4908ef91 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -114,7 +114,11 @@ rm -f /etc/udev/scripts/mount*
114umount ${device}* 2> /dev/null || /bin/true 114umount ${device}* 2> /dev/null || /bin/true
115 115
116mkdir -p /tmp 116mkdir -p /tmp
117cat /proc/mounts > /etc/mtab 117
118# Create /etc/mtab if not present
119if [ ! -e /etc/mtab ]; then
120 cat /proc/mounts > /etc/mtab
121fi
118 122
119disk_size=$(parted ${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") 123disk_size=$(parted ${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//")
120 124