Package: debianutils
Version: 2.15.6

The problem occurs due to line 20:

if [ $(mount | grep -o "^proc ") ] && [ -e /proc/cmdline ]; then

Specifically $(mount | grep -o "^proc ") will expand to multiple words 
making the [ command fail.

I suggest replacing the offending line with:

if mount | grep -q "^proc " && [ -e /proc/cmdline ]; then

which is also shorter and I think clearer but YMMV.

As to why one would mount the proc fs more than once. Well I am running 
on amd64 and have a i386 chroot set up where /proc needs to be 
available as well.

--
Markus


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to