Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nlplug-findfs: asynchronously fork child processes | Timo Teräs | 2015-10-24 | 1 | -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 processing | Timo Teräs | 2015-10-24 | 1 | -1/+1 |
| | | | | just to be on the safe side | ||||
* | nlplug-findfs: make all functions static | Timo Teräs | 2015-10-23 | 1 | -16/+14 |
| | |||||
* | nlplug-findfs: maintain environment for exec's in array | Timo Teräs | 2015-10-23 | 1 | -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 Copa | 2015-10-22 | 1 | -2/+3 |
| | | | | this is so we also can specify cryptroot=/dev/sdaX at boot prompt | ||||
* | init: also pass cryptopts when looking for apkovl/bootrepo | Natanael Copa | 2015-10-22 | 1 | -7/+8 |
| | | | | in theory we should be able to have apkovl on LUKS device | ||||
* | init: fix cryptroot | Natanael Copa | 2015-10-22 | 1 | -2/+2 |
| | | | | we need actually pass the $cryptopts to nlplug-findfs | ||||
* | init: start hwdrivers and modloop unless apkovl is found | Natanael Copa | 2015-10-20 | 1 | -0/+2 |
| | |||||
* | Merge branch 'master' into nlplug-findfs | Natanael Copa | 2015-10-20 | 5 | -17/+18 |
|\ | |||||
| * | mkinitfs: features should be read from $basedir if set | Christian Kampka | 2015-10-20 | 1 | -1/+1 |
| | | |||||
| * | features: virtio: Include virtio_net drivers | Christian Kampka | 2015-10-20 | 1 | -0/+1 |
| | | |||||
| * | init: remove support for old apk package files | Timo Teräs | 2015-10-19 | 1 | -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 install | Timo Teräs | 2015-10-19 | 1 | -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 actions | Timo Teräs | 2015-10-13 | 1 | -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 bootchart | Timo Teräs | 2015-10-09 | 2 | -13/+10 |
| | | |||||
* | | init: fix typo for fbsplash | Natanael Copa | 2015-10-19 | 1 | -1/+1 |
| | | |||||
* | | nlplug-findfs: make sure we handle all events in queue | Natanael Copa | 2015-10-19 | 1 | -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 complete | Natanael Copa | 2015-10-19 | 1 | -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 used | Natanael Copa | 2015-10-19 | 1 | -10/+4 |
| | | |||||
* | | nlplug-findfs: dont exit before trigger thread is complete | Natanael Copa | 2015-10-14 | 1 | -1/+1 |
| | | |||||
* | | init: do not force add hwdrivers and modloop | Natanael Copa | 2015-10-14 | 1 | -5/+0 |
| | | | | | | | | we probably dont support upgrade from the old version it was there for | ||||
* | | nlplug-findfs: avoid lstat syscall wen scanning /sys if possible | Natanael Copa | 2015-10-09 | 1 | -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 modes | Natanael Copa | 2015-10-09 | 1 | -3/+3 |
| | | |||||
* | | init: refactor to use nlplug-findfs | Natanael Copa | 2015-10-09 | 1 | -280/+67 |
| | | |||||
* | | nlplug-findfs: increase timeout if usb-storage was found | Natanael Copa | 2015-10-09 | 1 | -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 base | Natanael Copa | 2015-10-09 | 1 | -0/+1 |
| | | |||||
* | | nlplug-findfs: allow user to override timeout with -t option | Natanael Copa | 2015-10-09 | 1 | -2/+8 |
| | | |||||
* | | nlplug-findfs: fix exit code | Natanael Copa | 2015-10-08 | 1 | -5/+3 |
| | | | | | | | | retun success if anything of what we searched for was found. | ||||
* | | nlplug-findfs: save stackspace while recursing dir tree | Natanael Copa | 2015-10-08 | 1 | -12/+26 |
| | | | | | | | | | | avoid allocate PATH_MAX on stack for every dir. Instead reuse the path buffer. | ||||
* | | nlplug-findfs: fix recursing dirs on isofs | Natanael Copa | 2015-10-08 | 1 | -3/+12 |
| | | | | | | | | | | the dirent d_type is not supported on isofs apparently. Use lstat instead. | ||||
* | | nlplug-findfs: clean up netlink socket | Natanael Copa | 2015-10-08 | 1 | -2/+6 |
| | | | | | | | | we set CLOEXEC with socket create | ||||
* | | nlplug-findfs: remove mountdir option | Natanael Copa | 2015-10-08 | 1 | -17/+6 |
| | | | | | | | | | | We will need set optional mount options, so we better do the mount from script. | ||||
* | | nlplug-findfs: add -a option to find apkovl | Natanael Copa | 2015-10-08 | 1 | -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 -b | Natanael Copa | 2015-10-08 | 1 | -0/+1 |
| | | |||||
* | | nlplug-findfs: search for .boot_repository | Natanael Copa | 2015-10-07 | 1 | -44/+137 |
| | | | | | | | | | | add option -b OUTFILE which will create OUTFILE and add first found boot repository | ||||
* | | nlplug-findfs: refactor recursing dir tree | Natanael Copa | 2015-09-24 | 1 | -15/+28 |
| | | | | | | | | | | we need a more general recurse function so we can search for boot repos and similar. | ||||
* | | nlplug-findfs: run trigger in thread | Natanael Copa | 2015-09-23 | 1 | -13/+33 |
| | | |||||
* | | nlplug-findfs: fix usage help | Natanael Copa | 2015-09-23 | 1 | -15/+28 |
| | | |||||
* | | nlplug-findfs: do not depend on external trigger script | Natanael Copa | 2015-09-23 | 1 | -7/+35 |
| | | | | | | | | We recursively scan /sys and trigger the events ourselves. | ||||
* | | add new tool nlplug-findfs | Natanael Copa | 2015-09-23 | 3 | -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 missing | Natanael Copa | 2015-09-22 | 1 | -1/+1 |
| | | | | mdadm and lvm needs it | ||||
* | lvm: support snapshot LVs | Jesse Young | 2015-09-22 | 1 | -0/+1 |
| | |||||
* | init: make mdadm quiet | Jesse Young | 2015-09-22 | 1 | -1/+3 |
| | |||||
* | mkinitfs: add /run to the initfs base image | Jesse Young | 2015-09-22 | 1 | -1/+1 |
| | | | | | mdadm otherwise complains about not being able to lock /run/mdadm/map.lock | ||||
* | features: raid: add mdadm files | Jesse Young | 2015-09-22 | 2 | -0/+3 |
| | |||||
* | improve default config | Natanael Copa | 2015-08-28 | 1 | -1/+1 |
| | | | | remove bootchart and floppy from default config and add mmc | ||||
* | mkinitfs: copy modules.order and modules.builtin if those exist | Natanael Copa | 2015-07-30 | 1 | -0/+5 |
| | |||||
* | ==== release 2.8.0 ===v2.8.0 | Natanael Copa | 2015-07-15 | 1 | -1/+1 |
| | |||||
* | init: try mount /dev as devtmpfs and fallback to tmpfs | Natanael Copa | 2015-07-15 | 1 | -1/+2 |
| | | | | eudev depends on devtmpfs | ||||
* | features: add mmc | Timo Teräs | 2015-04-15 | 1 | -0/+1 |
| |