diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2018-05-09 13:37:09 -0600 |
---|---|---|
committer | Dan McGregor <dan.mcgregor@usask.ca> | 2018-05-11 09:48:00 -0600 |
commit | 166e40a4790cc977aa5136bf3f2c98bd34b7871d (patch) | |
tree | 344dacfb6a8df12702ae2c7a2531960692bee83e /meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh | |
parent | 28b5ee379708c36bd66a442b1b515bb32a729fc0 (diff) | |
download | openembedded-core-contrib-166e40a4790cc977aa5136bf3f2c98bd34b7871d.tar.gz |
base-files: use /proc/self/mounts for /etc/mtab
It should be /proc/self/mounts instead of /proc/mounts. Also switch to
using a relative link in base-files, as seems to be the convention in
other distributions.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh index 9c4b263d54..60c290e105 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi-testfs.sh @@ -67,7 +67,7 @@ rm -f /etc/udev/scripts/mount* umount /dev/${device}* 2> /dev/null || /bin/true mkdir -p /tmp -cat /proc/mounts > /etc/mtab +cat /proc/self/mounts > /etc/mtab disk_size=$(parted /dev/${device} unit mb print | grep '^Disk .*: .*MB' | cut -d" " -f 3 | sed -e "s/MB//") |