Browse Source

fcoe/cleanup-fcoe.sh: don't copy shm files to state

with systemd version 230, this is not necessary anymore
systemd commit cacf980ed44a28e276a6cc7f8fc41f991e2ab354
because /dev/shm is selinux relabled.
master
Harald Hoyer 9 years ago
parent
commit
f8242a6a60
  1. 10
      modules.d/95fcoe/cleanup-fcoe.sh

10
modules.d/95fcoe/cleanup-fcoe.sh

@ -4,7 +4,11 @@


if [ -e /var/run/lldpad.pid ]; then if [ -e /var/run/lldpad.pid ]; then
lldpad -k lldpad -k
mkdir -m 0755 -p /run/initramfs/state/dev/shm # with systemd version 230, this is not necessary anymore
cp /dev/shm/lldpad.state /run/initramfs/state/dev/shm/ > /dev/null 2>&1 # systemd commit cacf980ed44a28e276a6cc7f8fc41f991e2ab354
echo "files /dev/shm/lldpad.state" >> /run/initramfs/rwtab if [ -z "$DRACUT_SYSTEMD" ]; then
mkdir -m 0755 -p /run/initramfs/state/dev/shm
cp /dev/shm/lldpad.state /run/initramfs/state/dev/shm/ > /dev/null 2>&1
echo "files /dev/shm/lldpad.state" >> /run/initramfs/rwtab
fi
fi fi

Loading…
Cancel
Save