]> git.ozlabs.org Git - petitboot/commit
discover: add reinit path
authorJeremy Kerr <jk@ozlabs.org>
Wed, 2 Apr 2014 06:33:38 +0000 (14:33 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 2 Apr 2014 06:33:38 +0000 (14:33 +0800)
commit310de3ab00b77b09a897b93ed0272b82ebc4f73b
treee8badb454dce3afa10dd168a0f529c4b15e63b73
parentedcfca78ac49793e295ac97328942321f39e3996
discover: add reinit path

Currently, changes to settings doesn't take effect while the discover
server is running. This means we need to reboot for any changes (eg, to
network settings) to take effect.

This change introduces a reinit path. Triggered by a configuration
update, this will cause the device handler to drop all of its devices
(and boot options), and restart the discovery process from the device
sources.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/network.c
discover/udev.c
discover/udev.h