Skip to content

Commit

Permalink
Merge pull request #1759 from chaitan3/master
Browse files Browse the repository at this point in the history
Ignore /boot partition while getting a list of local media sources
  • Loading branch information
Arne Morten Kvarving committed Nov 11, 2012
2 parents 891ad9c + fe1753e commit 860cd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/storage/linux/UDisksProvider.cpp
Expand Up @@ -154,7 +154,8 @@ CMediaSource CUDiskDevice::ToMediaShare()

bool CUDiskDevice::IsApproved()
{
return (m_isFileSystem && m_isMounted && m_UDI.length() > 0 && (m_FileSystem.length() > 0 && !m_FileSystem.Equals("swap")) && !m_MountPath.Equals("/")) || m_isOptical;
return (m_isFileSystem && m_isMounted && m_UDI.length() > 0 && (m_FileSystem.length() > 0 && !m_FileSystem.Equals("swap"))
&& !m_MountPath.Equals("/") && !m_MountPath.Equals("/boot")) || m_isOptical;
}

#define BOOL2SZ(b) ((b) ? "true" : "false")
Expand Down

0 comments on commit 860cd91

Please sign in to comment.