uboslinux / ubos-admin

UBOS administration tools
Other
15 stars 3 forks source link

Skip /etc/hosts mount in Docker container #833

Closed jernst closed 3 years ago

jernst commented 3 years ago

Docker mounts some disk to /etc/hosts (and also to other places). lsblk treats that as a regular mount, and then we get confused when treating it as such, e.g. in ubos-admin status, where we get:

ERROR: not a directory: /etc/hosts

There doesn't seem to be a good way of telling, so let's hard-code skipping filesystems mounted to /etc/hosts.