On Tue, Feb 5, 2013 at 12:32 PM, Gordan Bobic <gordan@xxxxxxxxxx> wrote: > I'm a not quite up to speed on systemd, so I'm hoping somebody here might > point me in the right direction WRT the Fedora systemd init process flow. > > I'm trying to work around bug 529153: > https://bugzilla.redhat.com/show_bug.cgi?id=529153 > > The closest to a workable solution I have come up with is: > > echo -n 0000:00:1c.0:pcie04 > /sys/bus/pci_express/drivers/pciehp/unbind > > So I need this to run as early as possible during the init sequence, as soon > as /sys is mounted. systemd mounts /sys very early in the boot process, before any units are started. This should do the trick: # cat > /etc/systemd/system/bug-529153.service [Unit] Description=Workaround Bug 529153 DefaultDependencies=no Before=sysinit.target [Service] Type=oneshot ExecStart=/bin/bash -c'echo -n 0000:00:1c.0:pcie04 > /sys/bus/pci_express/drivers/pciehp/unbind' [Install] WantedBy=sysinit.target ^D # systemctl enable bug-529153.service -T.C. -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org