Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Mar 2021 21:37:43 -0600
From:      "Brandon Bergren" <bdragon@FreeBSD.org>
To:        "Brandon Bergren" <bdragon@FreeBSD.org>, "Ed Maste" <emaste@freebsd.org>,  "Warner Losh" <imp@bsdimp.com>
Cc:        "Nathan Whitehorn" <nwhitehorn@freebsd.org>, "Rodney W. Grimes" <rgrimes@freebsd.org>, src-committers <src-committers@freebsd.org>, "<dev-commits-src-all@freebsd.org>" <dev-commits-src-all@freebsd.org>, dev-commits-src-main@freebsd.org
Subject:   =?UTF-8?Q?Re:_git:_2c26d77d989a_-_main_-_Remove_/boot/efi_from_mtree, _mi?= =?UTF-8?Q?ssed_in_0b7472b3d8d2.?=
Message-ID:  <d3a0fb40-41c3-4e2f-8b44-678b6b4a7eb2@www.fastmail.com>
In-Reply-To: <63ccc815-d23b-44f5-8bf8-d301ce0665f7@www.fastmail.com>
References:  <202103021856.122IuYgV048086@gndrsh.dnsmgr.net> <3d947e4c-a529-0b27-a8d7-415600783e53@freebsd.org> <CANCZdfpLa67OABBZWwPQPAJELOdkk4XSvkeH-3axjPa5-wR3%2BA@mail.gmail.com> <CANCZdfr8PXo%2BKuKedHToTtKP1H_-iGYu415QhtZQpp=r8TtV6A@mail.gmail.com> <CAPyFy2BpXmzw__QT4oerwG5aRaihNpULOKwL_vwsQJibiZgiYg@mail.gmail.com> <63ccc815-d23b-44f5-8bf8-d301ce0665f7@www.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org
>

-- 
  Brandon Bergren
  bdragon@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d3a0fb40-41c3-4e2f-8b44-678b6b4a7eb2>