From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Tom=C3=A1=C5=A1_?= =?UTF-8?Q?=C4=8Cech?= Subject: bug#25043: mount is unable to locate mount helpers Date: Sun, 27 Nov 2016 15:18:41 +0100 Message-ID: <87polhm2f2.wl-sleep_walker@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34858) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB0IM-0007qG-S6 for bug-guix@gnu.org; Sun, 27 Nov 2016 09:19:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB0IH-0001vl-V7 for bug-guix@gnu.org; Sun, 27 Nov 2016 09:19:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:55820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB0IH-0001vg-RO for bug-guix@gnu.org; Sun, 27 Nov 2016 09:19:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cB0IH-0005dy-Ls for bug-guix@gnu.org; Sun, 27 Nov 2016 09:19:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB0I5-0007lU-UI for bug-guix@gnu.org; Sun, 27 Nov 2016 09:18:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB0I0-0001pd-W3 for bug-guix@gnu.org; Sun, 27 Nov 2016 09:18:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:37958) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cB0I0-0001pR-Pf for bug-guix@gnu.org; Sun, 27 Nov 2016 09:18:44 -0500 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F1ABEAC75 for ; Sun, 27 Nov 2016 14:18:42 +0000 (UTC) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25043@debbugs.gnu.org mount command from util-linux is expecting helpers in /sbin/ directory, which is not available on GuixSD. If found it when I tried to mount manully NFS: # mount -t nfs server:/some/path /mnt Manual page of `mount' - section EXTERNAL HELPERS and strace seems to agree: ... stat("/sbin/mount.nfs", 0x7ffe421e9080) = -1 ENOENT (No such file or directory) stat("/sbin/fs.d/mount.nfs", 0x7ffe421e9080) = -1 ENOENT (No such file or directory) stat("/sbin/fs/mount.nfs", 0x7ffe421e9080) = -1 ENOENT (No such file or directory) getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 prctl(PR_GET_DUMPABLE) = 1 getuid() = 0 geteuid() = 0 getgid() = 0 getegid() = 0 prctl(PR_GET_DUMPABLE) = 1 stat("/run", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/etc/mtab", {st_mode=S_IFLNK|0777, st_size=17, ...}) = 0 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) = 0 mount("disk:/", "/mnt", "nfs", MS_MGC_VAL, NULL) = -1 EINVAL (Invalid argument) write(2, "mount: ", 7mount: ) = 7 write(2, "wrong fs type, bad option, bad s"..., 110wrong fs type, bad option, bad superblock on disk:/, missing codepage or helper program, or other error) = 110 write(2, "\n", 1 ) = 1 write(2, " (for several filesystems "..., 108 (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program) ) = 108 write(2, "\n In some cases useful inf"..., 86 In some cases useful info is found in syslog - try dmesg | tail or so. ) = 86 close(1) = 0 close(2) = 0 exit_group(32) = ? +++ exited with 32 +++ The best approach to me seems to patch mount so it search PATH or introduce some other environment variable to search helpers in.