Package: netbase Version: 4.40 Severity: normal Tags: patch When iSCSI root is used (something now possible with the open-iscsi package), the network is deconfigured on shutdown or reboot, while / is still mounted.
The netbase init script already tries to detect network root drives, but it does not detect iSCSI drives. The patch below fixes this problem. diff -Nru netbase-4.40/debian/netbase.init netbase-4.41/debian/netbase.init --- netbase-4.40/debian/netbase.init 2009-12-06 17:12:24.000000000 +0100 +++ netbase-4.41/debian/netbase.init 2010-04-07 10:04:17.000000000 +0200 @@ -24,6 +24,11 @@ check_network_file_systems() { [ -e /proc/mounts ] || return 0 + if [ -f /etc/iscsi/iscsi.initramfs ]; then + log_warning_msg "not deconfiguring network interfaces: iSCSI root is in use." + exit 0 + fi + exec 9<&0 < /proc/mounts while read DEV MTPT FSTYPE REST; do case $DEV in -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages netbase depends on: ii initscripts 2.87dsf-10 scripts for initializing and shutt ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip Versions of packages netbase recommends: ii ifupdown 0.6.10 high level tools to configure netw netbase suggests no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org