[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to detect if inside a buildd chroot



Hi,
does somebody know about a solution to check whether one runs in a
buildd chroot or not? I need this to prevent hal from starting in buildd
chroots (via invoke-rc.d from postinst) as it breaks there because of
several reasons, including no /sys mounted.

This currently makes it impossible to have a library package depend on
something that depends on hal although this would be correct in a few
cases.

Thanks



Reply to: