public function addEntry(
        $filesystem,
        $mountPoint,
        $type,
        $options = 'ro',
        $dump = null,
        $pass = null
    ) {
        $line = $this->lineFactory->makeLine();

        $line
            ->setFileSystem($filesystem)
            ->setMountPoint($mountPoint)
            ->setFileSystemType($type)
            ->setOptions($options)
            ->setDump($dump !== null ? $dump : 0)
            ->setPass($pass !== null ? $pass : 0)
        ;

        try {
            $this->setLine($line);
        } catch (UnusableFileException $e) {
            throw new FstabException(
                'Unable to add an entry to the fstab file because it is unusable.',
                null,
                $e
            );
        }

        return $this;
    }