Disable automatic 'ATA over Ethernet discovery'
authorMichael Prokop <mika@grml.org>
Thu, 18 May 2017 15:00:41 +0000 (17:00 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 18 May 2017 15:05:21 +0000 (17:05 +0200)
commitfad6e2cc432ea47ba64a42b8d541f37127c2fd9a
tree500d13d210223f112b5b04931334d44a86a601da
parentd039e207a6fea49a966168e7d31487b86840af11
Disable automatic 'ATA over Ethernet discovery'

/usr/lib/modules-load.d/aoetools.conf by default contains:

| ## If you need to restrict the interfaces aoe will use, copy this
| ## file to /etc/modules-load.d/ and use this example:
| # aoe aoe_iflist="eth0,eth1"
|
| ## Load aoe driver with no interface restriction:
| aoe

and /lib/systemd/system/aoe-discover.service contains:

| [Unit]
| Description=ATA over Ethernet discovery
| BindsTo=sys-devices-virtual-aoe-discover.device
| DefaultDependencies=no
| Conflicts=shutdown.target
| After=network-online.target
|
| [Service]
| Type=oneshot
| ExecStart=/sbin/aoe-discover

Since the aeotools.conf file tells systemd to load the aoe module
which then triggers the udev rule we end up with automatic
aoe-discover execution on default Grml boot, even though we
disable the aoe-discover service (since enabling/disabling only
affects starting via transitive dependencies, but the udev rule
is doing the equivalent of `systemctl start $unit`). By removing
/usr/lib/modules-load.d/aoetools.conf we ensure that automatic
'ATA over Ethernet discovery' is NOT executed, though if a user
runs 'modprobe aoe' it executes aoe-discover as intended.

Thanks: Felipe Sateler + Darshaka Pathirana for help in coming up with a solution
Closes grml/grml#32
etc/grml/fai/config/scripts/GRMLBASE/55-aoetools [new file with mode: 0755]