Comment 21 for bug 1608495

Revision history for this message
Joshua Diamant (joshdi) wrote :

I think this issue is occuring because I am running a bcache cache device on a VROC IMSM 'fake raid' device. Once I followed Dimitri's finalrd steps in post #14 (this is required), I also had to add the following script '/lib/systemd/system-shutdown/bcache_stop'

Please make sure you run 'chmod +x /lib/systemd/system-shutdown/bcache_stop' after creating the file with the contents below:

#!/bin/bash

for stop in /sys/block/bcache[0-9]*/bcache/stop
do
        [ -f "$stop" ] || continue
        #echo "Stopping $stop"
        echo 1 > $stop
        echo 1 > $stop
done

for stop in /sys/fs/bcache/*/stop
do
        [ -f "$stop" ] || continue
        #echo "Stopping $stop"
        echo 1 > $stop
        echo 1 > $stop
done