aboutsummaryrefslogtreecommitdiffstats
path: root/nlplug-findfs.c
Commit message (Collapse)AuthorAgeFilesLines
...
* nlplug-findfs: fix exit codeNatanael Copa2015-10-081-5/+3
| | | | retun success if anything of what we searched for was found.
* nlplug-findfs: save stackspace while recursing dir treeNatanael Copa2015-10-081-12/+26
| | | | | avoid allocate PATH_MAX on stack for every dir. Instead reuse the path buffer.
* nlplug-findfs: fix recursing dirs on isofsNatanael Copa2015-10-081-3/+12
| | | | | the dirent d_type is not supported on isofs apparently. Use lstat instead.
* nlplug-findfs: clean up netlink socketNatanael Copa2015-10-081-2/+6
| | | | we set CLOEXEC with socket create
* nlplug-findfs: remove mountdir optionNatanael Copa2015-10-081-17/+6
| | | | | We will need set optional mount options, so we better do the mount from script.
* nlplug-findfs: add -a option to find apkovlNatanael Copa2015-10-081-29/+82
| | | | | when both apkovl and boot repository are found, then we should have what we need to setup up a working tmpfs root so we exit at that point.
* nlplug-findfs: add help text for -bNatanael Copa2015-10-081-0/+1
|
* nlplug-findfs: search for .boot_repositoryNatanael Copa2015-10-071-44/+137
| | | | | add option -b OUTFILE which will create OUTFILE and add first found boot repository
* nlplug-findfs: refactor recursing dir treeNatanael Copa2015-09-241-15/+28
| | | | | we need a more general recurse function so we can search for boot repos and similar.
* nlplug-findfs: run trigger in threadNatanael Copa2015-09-231-13/+33
|
* nlplug-findfs: fix usage helpNatanael Copa2015-09-231-15/+28
|
* nlplug-findfs: do not depend on external trigger scriptNatanael Copa2015-09-231-7/+35
| | | | We recursively scan /sys and trigger the events ourselves.
* add new tool nlplug-findfsNatanael Copa2015-09-231-0/+511
nlplug-findfs is a tool that will help us to find a given filesystem using coldplug. The only reason that initramfs exist in first place is to set up a rootfs and switch to it. The nlplug-findfs will handle coldplug events til a given filesystem/device is found and then mount it.