Should probably be "-t nosquashfs" instead (df is fine with that even if the filesystem isn't known to the kernel, at least for 12.2, as shown by "df -t nofnord"). Reported by WoC in IRC #freebsd.
# df -k -l -P -t nosquashfs --exclude-type=devtmpfs --exclude-type=tmpfs df: -l and -t are mutually exclusive.
(In reply to Piotr Kubaj from comment #1) That's arguably a design flaw in df since it makes sense to me to use "-l -t nofoo" to restrict filesystem types further than "all local" (and even if it's not, it should be mentioned in df(1)). But that's neither here nor there. Unless and until that's changed, the solution/workaround is probably to get rid of all uses of --exclude-type.
I have added a patch to PR 260921 that allows -l and -t to be used together. The example command: # df -k -l -P -t nosquashfs --exclude-type=devtmpfs --exclude-type=tmpfs could be specified as: # df -k -l -t nosquashfs,devtmpfs,tmpfs in df with the suggested patch applied.
(In reply to Stefan Eßer from comment #3) Since that was MFC'd to 13 but not 12, I still think the port needs a workaround until 12 EOLs.
Do you have a patch for the port? Per my understanding, using "df -k -l -t nosquashfs,devtmpfs,tmpfs" still won't work on stable/12.
(In reply to Piotr Kubaj from comment #5) Not right now, but I made a note to try supplying one when I have a moment unless someone beats me to it.
(In reply to Piotr Kubaj from comment #5) I just got confirmation that https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260921 won't get MFC'd to 12, so someone (maybe me if and when I have the time, but don't hold your breath) needs to submit a patch.