Closed jph76 closed 6 years ago
[ "$FS" = "btrfs" ]
works with standard shell.
On Debian, standard shell /bin/sh
is dash where [ "$FS" = "btrfs" ]
won’t work.
@jph76 AFAIK dash is POSIX compliant and the above mentioned way to compare strings is the POSIX way. See also https://wiki.ubuntu.com/DashAsBinSh
The =
is already used in several places so if you haven't observed any problems, I assume it works under dash too. There are no advanced shell tricks used so sh
should be sufficient.
Now it works like a charm. Thanks!
btrfs-balance etc. call /bin/sh, therefore, [ "$FS" == "btrfs" ] in btrfsmaintenance-functions line 76 will not work.
Fix: call /bin/bash