Ensure we have a root partition when checking space
commite47fc2d7c6eb99a7b09393c6938ea47416cb88bc
authorDan McGee <dan@archlinux.org>
Thu, 17 Mar 2011 10:14:06 +0000 (17 05:14 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 17 Mar 2011 14:33:04 +0000 (17 09:33 -0500)
tree3d86a6463a1bf0bf20bbd3017d00e00c01407e36
parent308aa38a40fb26d535f0b874bb64fe987126d03f
Ensure we have a root partition when checking space

Partially addresses the "why doesn't CheckSpace work in a chroot" issue.
We can't make it work, but we can at least detect when it won't work by
checking for a partition for our given installation root. If we can't
determine the mountpoint for this, bail out with an error.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/diskspace.c