Skip to content
This repository was archived by the owner on Feb 24, 2024. It is now read-only.
This repository was archived by the owner on Feb 24, 2024. It is now read-only.

OMV enters emergency mode if mounting of /var/lib/docker/openmediavault fails #72

@denis-martin

Description

@denis-martin

If the following fstab entry cannot be mount during boot, OMV enters emergency mode:

/srv/dev-disk-by-label-Data1/Docker /var/lib/docker/openmediavault none bind,defaults 0 0

This can happen, for instance, if the data disk is encrypted and needs to be unlocked manually. The emergency mode even prevents ssh from being started, which is especially painful in headless mode.

The data disk has the nofail option. If adding the nofail option to the docker mount point, the system starts gracefully. My fstab for the data disk and the docker mount points:

# >>> [openmediavault]
/dev/disk/by-label/Data1 /srv/dev-disk-by-label-Data1 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
/srv/dev-disk-by-label-Data1/Docker /var/lib/docker/openmediavault none bind,defaults,nofail 0 0
# <<< [openmediavault]

Note the nofail option on the docker mount point.

Not sure if openmediavault-docker-gui is the package responsible for this fstab entry, so please redirect me if I'm wrong here ;-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions