~ubuntu-branches/ubuntu/vivid/open-iscsi/vivid

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# iscsi-network-interface - suppress configuration of network interface used
# by iSCSI root device
#
# If the root filesystem is on iSCSI, then we must take care to avoid
# changing the state of its network interface. To this end, the initramfs
# leaves a note for us which interface was used, and we mangle
# /run/network/ifstate manually to stop it being brought up or down
# automatically. This is a slight layering violation, but, unfortunately,
# ifupdown appears to have no way to do this without also running
# /etc/network/*.d/ scripts.

description	"configure network device used by iSCSI root"

start on starting network-interface
stop on stopping network-interface

pre-start /lib/open-iscsi/net-interface-handler start
post-stop /lib/open-iscsi/net-interface-handler stop