fix detection of (no)persistence option in read-only mode
authorEvgeni Golov <evgeni@debian.org>
Fri, 1 Jan 2016 14:48:06 +0000 (15:48 +0100)
committerEvgeni Golov <evgeni@debian.org>
Fri, 1 Jan 2016 14:48:06 +0000 (15:48 +0100)
thanks intrigeri for finding the bug and mika for suggesting a fix

components/0020-read-only

index a2c86ef..f56b8cf 100755 (executable)
@@ -54,7 +54,7 @@ Read_only ()
                esac
        done
 
-       if grep -qe persistence /proc/cmdline
+       if grep -qw persistence /proc/cmdline
                then
                printf " * Persistence mode enabled, searching for persistency related devices to unlock\n" >/dev/console