diff options
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 6 |
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* | |||
114 | umount ${device}* 2> /dev/null || /bin/true | 114 | umount ${device}* 2> /dev/null || /bin/true |
115 | 115 | ||
116 | mkdir -p /tmp | 116 | mkdir -p /tmp |
117 | cat /proc/mounts > /etc/mtab | 117 | |
118 | # Create /etc/mtab if not present | ||
119 | if [ ! -e /etc/mtab ]; then | ||
120 | cat /proc/mounts > /etc/mtab | ||
121 | fi | ||
118 | 122 | ||
119 | disk_size=$(parted ${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") | 123 | disk_size=$(parted ${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//") |
120 | 124 | ||