Re: r48657 - in trunk/packages/os-prober: debian os-probes/init/common
Joey Hess <joeyh@debian.org> writes:
> Colin Watson wrote:
>> - Tighten check for whether we're running in d-i; anna-install isn't
>> quite enough because if you're running d-i code outside d-i it's
>> sometimes reasonable to install a shim for anna-install.
>
>> - if type anna-install >/dev/null 2>&1; then
>> + if type anna-install >/dev/null 2>&1 && [ -d /lib/debian-installer ]; then
>
> This still feels very ad-hoc. What about looking for
> DISTRIB_DESCRIPTION="Debian GNU/Linux installer"
> in /etc/lsb-release? Or are derived distros changing that?
I think Ubuntu should be doing it.
We might then change it to /etc/debian-installer-version file or
something that would be keep available everywhere.
Thoughts?
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio@debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
Reply to: