How to CIFS Mount?

Hello! Did you happen to make this work on RancherOS on v1.5.8? Here’s what I’ve set up:

mounts:
-  - "//my_nas_address/share_name"
   - "/mnt/mountpoint"
   - "cifs"
   - "credentials=/root/.cifs,iocharset=utf8,_netdev"

And it doesn’t work. The sudo mount -t cifs "//my_nas_address/share_name" "/mnt/mountpoint" -o credentials=/root/.cifs,iocharset=utf8,_netdev works (but only after I switched to ubuntu console and I installed cifs-utils package.

The tail of dmesg says:

[   15.420866] FS-Cache: Netfs 'cifs' registered for caching
[   15.421124] Key type cifs.spnego registered
[   15.421142] Key type cifs.idmap registered
[   15.422067] Unable to determine destination address.

Any ideas on where to look for the issue?


Edit: I changed the “my_nas_address” (which was a DNS-resolved name) with an IP address and now, the error in dmesg is:

CIFS VFS: No username specified

After changing the credentials=/root/.cifs to username=XXX,password=YYY it stared to work. But I don’t like that workaround.

To solve first issue (Unable to determine destination address) I tried adding name resolve order = host lmhosts wins bcast to /etc/samba/smb.conf, but it sill didn’t accept the host DNS name.

I can live with hardcoded IP address, but I cannot stand the secrets being hardcoded in the config file.

Anyone got an idea on how to make this work with credfile and DNS name?


edit: The issues above, when unrelated to RancherOS, according to the internet, should be solved by installing cifs-utils. So my guess is that the udev container of RancherOS does not have it, so it’s impossible to do? Can someone confirm?