[systemd-devel] What is the recommended way to replace hald hooks in the systemd world?
Lennart Poettering
lennart at poettering.net
Fri Jul 15 05:58:16 PDT 2011
On Fri, 15.07.11 11:14, Barry Scott (barry.scott at onelan.co.uk) wrote:
> In F13 days we used HAL to call out to our code to handle
> adding and removal of USB storage with this
> /etc/hal/fdi/policy/90-onelan-mount.fdi policy file.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <deviceinfo version="0.2">
> <device>
> <match key="volume.fsusage" string="filesystem">
> <match key="@info.parent:storage.bus" string="usb">
> <append key="info.callouts.add" type="strlist">ntb_mount_usb -v</append>
> <append key="info.callouts.remove" type="strlist">ntb_mount_usb -v</append>
> </match>
> </match>
> </device>
> </deviceinfo>
>
> Do you recommmend staying with hal in F15 or using some other mechanism?
You can use udev rules. to pull this in.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list