On 08/08/20 04:32, Kyle Evans wrote:> On Fri, Aug 7, 2020 at 8:57 PM Dmitrii Postolov <dpostolov at yandex.ru> wrote: >> >> Hi! >> >> Recently (I find it difficult to give an exact date), on my computer with FreeBSD there is a situation when there are 2 EFISYS shortcuts on the desktop with Xfce 4.14 (without plugged sticks). In other Unix-like operating systems under Xfce there is no such problem. Is it possible to solve the problem? >> >> dmitrii at nuc7:~ % uname -a >> FreeBSD nuc7 12.1-STABLE FreeBSD 12.1-STABLE r363918 GENERIC amd64 >> >> Intel NUC7PJYH MiniPC. >> >> Screenshot: https://yadi.sk/i/4fQZyK_o-yhUdQ >> > > Applications -> Settings- > Desktop -> Icons tab -> Default Icons -> > Removable Devices, Unselect "Other Devices"This would also exclude other useful devices.> > i'm not sure if there's a more granular way to do this. Alternatively, > you could create a /boot/efi or /boot/msdos or similar and mount it at > boot so that xfce doesn't even try it. EFISYS = EFI System Partition > ("ESP"). Unsure why it's identified in the "Removable Device" > category.The "granular" way is through hal policies. For example I have this in /usr/local/etc/hal/fdi/preprobe/20thirdparty/10-ignore-EFI.fdi: <deviceinfo version="0.2"> <device> <match key="block.device" string="/dev/ada0p1"> <merge key="info.ignore" type="bool">true</merge> </match> </device> <device> <match key="block.device" string="/dev/ada0"> <merge key="info.ignore" type="bool">true</merge> </match> </device> </deviceinfo> Hope this helps. BTW there's some documentation here: https://www.freebsd.org/gnome/docs/halfaq.html -- Guido Falsi <mad at madpilot.net>
Hi Guido,> On 8 Aug 2020, at 18:03, Guido Falsi via freebsd-stable <freebsd-stable at freebsd.org> wrote: >> >> i'm not sure if there's a more granular way to do this. Alternatively, >> you could create a /boot/efi or /boot/msdos or similar and mount it at >> boot so that xfce doesn't even try it. EFISYS = EFI System Partition >> ("ESP"). Unsure why it's identified in the "Removable Device" >> category. > > The "granular" way is through hal policies. For example I have this in > /usr/local/etc/hal/fdi/preprobe/20thirdparty/10-ignore-EFI.fdi: > > > <deviceinfo version="0.2"> > <device> > <match key="block.device" string="/dev/ada0p1"> > <merge key="info.ignore" type="bool">true</merge> > </match> > </device> > <device> > <match key="block.device" string="/dev/ada0"> > <merge key="info.ignore" type="bool">true</merge> > </match> > </device> > </deviceinfo> > > > Hope this helps.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? 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. Thanks. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum