summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install-efi.sh4
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 3134486aae..2d20a6dad7 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -128,8 +128,8 @@ umount ${device}* 2> /dev/null || /bin/true
128mkdir -p /tmp 128mkdir -p /tmp
129 129
130# Create /etc/mtab if not present 130# Create /etc/mtab if not present
131if [ ! -e /etc/mtab ]; then 131if [ ! -e /etc/mtab ] && [ -e /proc/mounts ]; then
132 cat /proc/mounts > /etc/mtab 132 ln -sf /proc/mounts /etc/mtab
133fi 133fi
134 134
135disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//") 135disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//")
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 0542e26fd2..89d5a5d9a4 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -124,8 +124,8 @@ if [ ! -b /dev/loop0 ] ; then
124fi 124fi
125 125
126mkdir -p /tmp 126mkdir -p /tmp
127if [ ! -L /etc/mtab ]; then 127if [ ! -L /etc/mtab ] && [ -e /proc/mounts ]; then
128 cat /proc/mounts > /etc/mtab 128 ln -sf /proc/mounts /etc/mtab
129fi 129fi
130 130
131disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//") 131disk_size=$(parted ${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//")