Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2020 11:29:30 +0930
From:      "O'Connor, Daniel" <darius@dons.net.au>
To:        Guido Falsi <mad@madpilot.net>
Cc:        Kyle Evans <kevans@freebsd.org>, Dmitrii Postolov <dpostolov@yandex.ru>, freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: EFISYS shortcuts on Xfce desktops
Message-ID:  <A3D9AF6A-7CBB-4B18-A323-7CF712CED5B2@dons.net.au>
In-Reply-To: <4DBD56C1-D81B-4F8E-9B2B-F6E3961A64C3@dons.net.au>
References:  <613031596851658@mail.yandex.ru> <CACNAnaE7H0YmnR4zkTNn3PaomZT-GfNdH8HSrsmaHvDdeRu0oA@mail.gmail.com> <ae54a42c-48c5-f1c8-bd04-76a33a1028a5@madpilot.net> <4DBD56C1-D81B-4F8E-9B2B-F6E3961A64C3@dons.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 18 Aug 2020, at 11:23, O'Connor, Daniel <darius@dons.net.au> wrote:
>=20
>> On 8 Aug 2020, at 18:03, Guido Falsi via freebsd-stable =
<freebsd-stable@freebsd.org> wrote:
>> Hope this helps.
>=20
> Thanks for this, I got it working by specifying block.device (twice, =
once for /dev/msdosfs/EFISYS and once for /dev/gptid/<mumble>). Is there =
a way it can key off (say) the volume name or UUID instead?
>=20
> I tried a few keys like volume.uuid and volume.label but they don't =
work. Perhaps that is because they are only filled in after the =
preprobe, hence the rules don't match until after they could possibly =
take effect.

Naturally 5 minutes after sending this I worked it out on my own..
[clmet 1:58] ~> cat =
/usr/local/etc/hal/fdi/policy/20thirdparty/10-ignore-efi.fdi
<?xml version=3D"1.0" encoding=3D"utf-8"?>

<deviceinfo version=3D"0.2">
  <device>
    <match key=3D"volume.fstype" string=3D"vfat">
      <match key=3D"volume.label" string=3D"EFISYS">
        <merge key=3D"volume.ignore" type=3D"bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

I discovered this:
      <!-- EFI firmware partitions -->
      <match key=3D"volume.fstype" string=3D"vfat">
        <match key=3D"volume.label" string=3D"EFI">
          <merge key=3D"volume.ignore" type=3D"bool">true</merge>
        </match>
      </match>

in /usr/local/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi

I think it would make sense to patch the port to add another stanza =
which matches EFISYS as well as EFI.

What do you think?

Thanks.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3D9AF6A-7CBB-4B18-A323-7CF712CED5B2>