aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nlplug-findfs: asynchronously fork child processesTimo Teräs2015-10-241-82/+185
| | | | | | | | instead of waiting each child to run end before continuing, fork or queue each command allowing up to CPU count concurrent childs. this enables full use of SMP cores, and allows loading of modules after a blocking command is started; fixing e.g. keyboard driver to load even if crypto disk command is waiting keyboard input.
* nlplug-findfs: check for valid key value pair in uevent processingTimo Teräs2015-10-241-1/+1
| | | | just to be on the safe side
* nlplug-findfs: make all functions staticTimo Teräs2015-10-231-16/+14
|
* nlplug-findfs: maintain environment for exec's in arrayTimo Teräs2015-10-231-22/+30
| | | | | | Using clearenv and setenv is slow, non-thread safe and problematic. This makes PATH inherited from parent environment, and explicitly constructs the rest of the environment for mdev.
* nlplug-findfs: support search for /dev/<devname>Natanael Copa2015-10-221-2/+3
| | | | this is so we also can specify cryptroot=/dev/sdaX at boot prompt
* init: also pass cryptopts when looking for apkovl/bootrepoNatanael Copa2015-10-221-7/+8
| | | | in theory we should be able to have apkovl on LUKS device
* init: fix cryptrootNatanael Copa2015-10-221-2/+2
| | | | we need actually pass the $cryptopts to nlplug-findfs
* init: start hwdrivers and modloop unless apkovl is foundNatanael Copa2015-10-201-0/+2
|
* Merge branch 'master' into nlplug-findfsNatanael Copa2015-10-205-17/+18
|\
| * mkinitfs: features should be read from $basedir if setChristian Kampka2015-10-201-1/+1
| |
| * features: virtio: Include virtio_net driversChristian Kampka2015-10-201-0/+1
| |
| * init: remove support for old apk package filesTimo Teräs2015-10-191-6/+1
| | | | | | | | | | | | remove support for /etc/lbu/packages.list (pre historic times) and /var/lib/apk/world (historic times). upgrade from versions using these files is no longer supported.
| * init: fix tmpfs installTimo Teräs2015-10-191-0/+5
| | | | | | | | | | | | | | during tmpfs install, some package scripts and triggers may require access to /dev, /proc or /sys. make sure those are bind mounted to have them available. they are later on move mounted to the new root.
| * init: remove unneeded openrc upgrade actionsTimo Teräs2015-10-131-5/+0
| | | | | | | | | | | | they in fact are harmful, hwdrivers is not needed or even wanted if using eudev. these were only needed for upgrade path from alpine 1.9.x which is no longer supported.
| * init: fix bootchartTimo Teräs2015-10-092-13/+10
| |
* | init: fix typo for fbsplashNatanael Copa2015-10-191-1/+1
| |
* | nlplug-findfs: make sure we handle all events in queueNatanael Copa2015-10-191-1/+7
| | | | | | | | | | | | | | | | | | | | we want handle all the events in queue, even if we find the devices we are looking for. This is so we load kernel module for framebuffer even if the apkvol and bootrepo are found first. This means that the only valid exit condition is a poll timeout and that we can set the timeout to 0 once we found all the things we are looking for.
* | nlplug-findfs: wait indefinitively til trigger thread is completeNatanael Copa2015-10-191-11/+14
| | | | | | | | | | | | make sure that we dont exit before the trigger thread is complete, regardless if we find the devices/bootrepo/apkovl we are looking for or not.
* | nlplug-findfs: use DT_UNKNOWN to detect if lstat is to be usedNatanael Copa2015-10-191-10/+4
| |
* | nlplug-findfs: dont exit before trigger thread is completeNatanael Copa2015-10-141-1/+1
| |
* | init: do not force add hwdrivers and modloopNatanael Copa2015-10-141-5/+0
| | | | | | | | we probably dont support upgrade from the old version it was there for
* | nlplug-findfs: avoid lstat syscall wen scanning /sys if possibleNatanael Copa2015-10-091-5/+18
| | | | | | | | | | | | | | There are ~10k entries in /sys so we want be fast. Not all filesystems supports dirent filed d_type, (iso9660 for example) so we need use lstat to find directories. However, we know that sysfs supports it, so we can avoid 10k lstat syscalls. This might be noticiable difference on rpi.
* | init: run mdev as handler for device modesNatanael Copa2015-10-091-3/+3
| |
* | init: refactor to use nlplug-findfsNatanael Copa2015-10-091-280/+67
| |
* | nlplug-findfs: increase timeout if usb-storage was foundNatanael Copa2015-10-091-1/+11
| | | | | | | | | | usb storage need some time to settle, we increase the timeout with 2 seconds if we detext usb-storage.
* | features: add nlplug-findfs to baseNatanael Copa2015-10-091-0/+1
| |
* | nlplug-findfs: allow user to override timeout with -t optionNatanael Copa2015-10-091-2/+8
| |
* | 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-233-3/+572
|/ | | | | | | | 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.
* init: create /run in case it is missingNatanael Copa2015-09-221-1/+1
| | | | mdadm and lvm needs it
* lvm: support snapshot LVsJesse Young2015-09-221-0/+1
|
* init: make mdadm quietJesse Young2015-09-221-1/+3
|
* mkinitfs: add /run to the initfs base imageJesse Young2015-09-221-1/+1
| | | | | mdadm otherwise complains about not being able to lock /run/mdadm/map.lock
* features: raid: add mdadm filesJesse Young2015-09-222-0/+3
|
* improve default configNatanael Copa2015-08-281-1/+1
| | | | remove bootchart and floppy from default config and add mmc
* mkinitfs: copy modules.order and modules.builtin if those existNatanael Copa2015-07-301-0/+5
|
* ==== release 2.8.0 ===v2.8.0Natanael Copa2015-07-151-1/+1
|
* init: try mount /dev as devtmpfs and fallback to tmpfsNatanael Copa2015-07-151-1/+2
| | | | eudev depends on devtmpfs
* features: add mmcTimo Teräs2015-04-151-0/+1
|