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

Bug#592684: debian-installer-utils: please don't check for /sys on Hurd

On Thu, Aug 12, 2010 at 09:43:06AM +0200, Petter Reinholdtsen wrote:
> [Jeremie Koenig]
> > -	if [ ! -d /target/sys ]; then
> > +	if [ ! -d /target/sys ] && [ "$(udpkg --print-os)" != hurd ]; then
> Would it be better to look for 'sysfs' in /proc/filesystems to avoid
> hardcoding OS names there?

Unfortunately, neither Hurd nor kFreeBSD have a /proc/filesystems file.
Also, the /sys filesystem is named "linsysfs" on kFreeBSD.

An alternative would be to check for, say, /sys/devices in the installer
itself. Does this sound reasonable?

Jeremie Koenig <jk@jk.fr.eu.org>

Reply to: