]> git.ipfire.org Git - thirdparty/dracut.git/commit
Use pattern matching function 334/head
authorFlorian Gamböck <mail@floga.de>
Mon, 18 Dec 2017 10:04:05 +0000 (11:04 +0100)
committerFlorian Gamböck <mail@floga.de>
Mon, 18 Dec 2017 10:04:05 +0000 (11:04 +0100)
commit63755f4db82ff8eadaaf0f6a47ffabf9b34ee679
tree6067fc3306ef2783d0d04b5ced3bad9c70868e78
parent2d3273f96f7527690b3d2e16d1aa766a8e19c376
Use pattern matching function

The needle argument in this specific case is a pattern, which cannot be
matched by the "literal" string matcher strstr.

This can result in fsck calls like:

    e2fsck -a -y /dev/sda1

Which will then exit with an error like:

    e2fsck: Only one of the options -p/-a, -n or -y may be specified.

Hence, it is necessary to use the strglobin function to correctly match
the pattern.
modules.d/99fs-lib/fs-lib.sh