BTS

Message4347

Author jss
Recipients bugs, jss
Date 2012-05-11.12:32:17
Content
Hello,

I found the following problems when trying to use debnet on grml 2011.12
on a virtual machine with Debian Squeeze installed on LVM.

I booted using the options lvm debnet, expecting debnet to use the
/etc/network/interfaces file from the LVM logical volume. Instead, it
used the /etc/network/interfaces file from /dev/loop0, because that is
listed earlier in /proc/partitions.

In addition, I found the two following problems in debnet:
* DEVICES="$DEVICES $(ls /dev/mapper/*)" is redundant, because LVM
logical volumes are listed in /proc/partitions (but perhaps the line is
needed for other cases?)
* "pump -k >/dev/null 2>&1" causes the script to always exit, because
pump is not installed, and the shebang line includes the -e option to sh.

I've attached a patch which removes the two mentioned lines and causes
the script to ignore all loop devices. I've tested it and it seems to
work for me: the /etc/network/interfaces file is successfully copied
from the LVM logical volume, and the network is brought up.

John.
Files
File name Uploaded
debnet.patch jss, 2012-05-11.12:32:17
History
Date User Action Args
2012-05-11 12:32:17jsssetrecipients: + jss
2012-05-11 12:32:17jsslinkissue1166 messages
2012-05-11 12:32:17jsscreate