Merge pull request #756 from marineam/dev

bootengine: fix install when $ROOT is /
This commit is contained in:
Michael Marineau 2014-07-20 17:07:45 -07:00
commit f8e5fe779b

View File

@ -58,7 +58,7 @@ src_install() {
# cpio image in pkg_postinst() where we are free to mount filesystems, chroot,
# and other fun stuff.
pkg_postinst() {
if [[ -n "${ROOT}" ]]; then
if [[ "${ROOT:-/}" != / ]]; then
${ROOT}/usr/sbin/update-bootengine -m -c ${ROOT} || die
else
update-bootengine || die