From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: bug#25043: mount is unable to locate mount helpers Date: Tue, 29 Nov 2016 12:16:07 +0100 Message-ID: <20161129111606.GA26881@jocasta.intra> References: <87polhm2f2.wl-sleep_walker@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBgPQ-0003tz-FA for bug-guix@gnu.org; Tue, 29 Nov 2016 06:17:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBgPK-0001df-52 for bug-guix@gnu.org; Tue, 29 Nov 2016 06:17:10 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBgPK-0001Vb-2m for bug-guix@gnu.org; Tue, 29 Nov 2016 06:17:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cBgPG-0005JR-BI for bug-guix@gnu.org; Tue, 29 Nov 2016 06:17:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Content-Disposition: inline In-Reply-To: <87polhm2f2.wl-sleep_walker@gnu.org> 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: Tom???? ??ech Cc: 25043@debbugs.gnu.org --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This was recently fixed in the core-updates branch. J' On Sun, Nov 27, 2016 at 03:18:41PM +0100, Tom???? ??ech wrote: mount command from util-linux is expecting helpers in /sbin/ directory, which is not available on GuixSD. =20 If found it when I tried to mount manully NFS: =20 # mount -t nfs server:/some/path /mnt =20 Manual page of `mount' - section EXTERNAL HELPERS and strace seems to = agree: =20 ... stat("/sbin/mount.nfs", 0x7ffe421e9080) =3D -1 ENOENT (No such file or= directory) stat("/sbin/fs.d/mount.nfs", 0x7ffe421e9080) =3D -1 ENOENT (No such fi= le or directory) stat("/sbin/fs/mount.nfs", 0x7ffe421e9080) =3D -1 ENOENT (No such file= or directory) getuid() =3D 0 geteuid() =3D 0 getgid() =3D 0 getegid() =3D 0 prctl(PR_GET_DUMPABLE) =3D 1 getuid() =3D 0 geteuid() =3D 0 getgid() =3D 0 getegid() =3D 0 prctl(PR_GET_DUMPABLE) =3D 1 stat("/run", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0 lstat("/etc/mtab", {st_mode=3DS_IFLNK|0777, st_size=3D17, ...}) =3D 0 lstat("/run/mount/utab", {st_mode=3DS_IFREG|0644, st_size=3D0, ...}) = =3D 0 open("/run/mount/utab", O_RDWR|O_CREAT|O_CLOEXEC, 0644) =3D 3 close(3) =3D 0 mount("disk:/", "/mnt", "nfs", MS_MGC_VAL, NULL) =3D -1 EINVAL (Invali= d argument) write(2, "mount: ", 7mount: ) =3D 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) =3D 110 write(2, "\n", 1 ) =3D 1 write(2, " (for several filesystems "..., 108 (for several= filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program) ) =3D 108 write(2, "\n In some cases useful inf"..., 86 In some cases useful info is found in syslog - try dmesg | tail or so. ) =3D 86 close(1) =3D 0 close(2) =3D 0 exit_group(32) =3D ? +++ exited with 32 +++ =20 =20 The best approach to me seems to patch mount so it search PATH or introduce some other environment variable to search helpers in. =20 =20 =20 --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlg9Y3YACgkQimdxnC3oJ7OFhQCcCV9XMGoAmdBjwpDRS/3DmY/3 V80An3tinj8KTu3Xw2ilXDjvKgQgGB2A =N1pQ -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--