[issue1166] Patch for debnet (grml-network)

John S. Skogtvedt bts at bts.grml.org
Fri May 11 14:32:17 CEST 2012


New submission from John S. Skogtvedt <jss at bzz.no>:

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: debnet.patch
messages: 4347
nosy: jss
status: unread
title: Patch for debnet (grml-network)

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1166>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debnet.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20120511/75c8988d/attachment.bin>


More information about the Bugs-changes mailing list