From dd6b7020ed1669d2cbbe7811af68cd876f7d813f Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 8 Sep 2017 11:07:39 +0200 Subject: [PATCH] exfat: Create symbolic link `/sbin/mount.exfat` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently using `udisks --mount /dev/sdb1` with an exFAT partition, currently doesn’t work. Using `strace`, it looks like, `mount` only looks in `/sbin`. ``` $ sudo strace mount /scratch/local/exfat.img /scratch/local/mnt2 […] munmap(0x7f53721c7000, 266240) = 0 stat("/sbin/mount.exfat", 0x7fffaf76fa60) = -1 ENOENT (No such file or directory) stat("/sbin/fs.d/mount.exfat", 0x7fffaf76fa60) = -1 ENOENT (No such file or directory) stat("/sbin/fs/mount.exfat", 0x7fffaf76fa60) = -1 ENOENT (No such file or directory) lstat("/run/mount/utab", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 open("/run/mount/utab", O_RDWR|O_CREAT|O_CLOEXEC, 0644) = 3 close(3) […] ``` So create a symbolic link. It works then. --- exfat.be0 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exfat.be0 b/exfat.be0 index c8e8e86e8..7051085f6 100755 --- a/exfat.be0 +++ b/exfat.be0 @@ -46,3 +46,8 @@ mee_patch_post() { #mee_install() { # bee_install #} + +mee_install_post() { + start_cmd mkdir ${D}/sbin + start_cmd ln -s ${D}/usr/sbin/mount.exfat ${D}/sbin/ +}