=?UTF-8?Q?Re:_git:_2c26d77d989a_-_main_-_Remove_/boot/efi_from_mtree, _mi?= ssed in 0b7472b3d8d2.
Brandon Bergren
bdragon at FreeBSD.org
Wed Mar 3 03:38:18 UTC 2021
grep -q rather.
In any case, instead of checking for directory existence, checking whether something is actually mounted there.
On Tue, Mar 2, 2021, at 9:34 PM, Brandon Bergren wrote:
> OK, how about this as an idea then:
>
> Parse mount output to see if anything is mounted to /boot/efi directly?
>
> if mount -p | cut -f 2 | grep '^/boot/efi$'; then
> ....
> fi
>
> --
> Brandon Bergren
> bdragon at FreeBSD.org
>
--
Brandon Bergren
bdragon at FreeBSD.org
More information about the dev-commits-src-main
mailing list