| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
raid disks are created zero sized. when mdadm has found all the
disks it finally enables it. this causes md devices to be zero
sized for some time after their creation, and blkid will not
detect them. catch the 'change' notification and rescan block
devices for updated blkid.
|
|
|
|
|
|
|
| |
Based on patch by donoban. Limit recursion depth for repository
search to 2 levels (shell script had -maxdepth 3 for finding the
file entry, so it's maximum of 2 levels of directories). For sysfs
entries deeper search is allowed. ref #5192
|
| |
|
| |
|
|
|
|
|
| |
this was commented out during nlplug-findfs refactor for debugging
purposes. uncomment it again.
|
|
|
|
|
|
|
| |
we we specify a repo with boot option then we should not launch an
emergency shell even if no repo was found.
This is needed for pxe boot.
|
|
|
|
|
| |
add -n option to allow return success even if nothing was found. This is
useful for net boot, where apkovl and repositories are on network.
|
|
|
|
|
| |
we need set MAC_ADDRESS where whi know $device, which is a local
variable.
|
| |
|
| |
|
|
|
|
|
| |
we need to relocate mount based on fstab in initramfs in case there is
an apkovl but no fstab.
|
|
|
|
|
| |
this fixes one typo of that filename. ref #4975 - fixes
half of the problem.
|
|
|
|
| |
otherwise it hangs waiting input from stdin
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
it is normal that kernel modules or directories are missing in
some architectures. don't give unwanted warnings on those.
|
| |
|
|
|
|
|
|
|
| |
kernel does not set any "DRIVER" env var in uevent from netlink so we
use kmod to find usb_storage driver.
We also reduce the timeout to 1 sec, which should be enough.
|
|
|
|
|
| |
we want the faster crypto implementation early for cryptsetup, xfs and
btrfs.
|
| |
|
|
|
|
|
| |
Avoid printing error message if there are lvm devices but root is not on
any of those.
|
| |
|
|
|
|
|
|
|
| |
we want print the device name that user is looking for when we prompt
for cryptsetup password instead of the devname from kernel uevent.
If user specified UUID, then we print kernel provided name.
|
|
|
|
|
| |
we want avoid lvm messages be printed after password prompt for
cryptsetup is displayed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need run cryptsetup in parallel so that keyboard drivers are loaded
while waiting for password input.
But cryptsetup will recreate the device which means that the uevent for
new device node will first be added then changed and finally will it
create the /dev/mapper/* device node. We handle the first generated
uevent and while handling, the device node might have disappeared
causeing blkid not find any UUID, and the /dev/mapper/* does not yet
exist.
This means that we need to:
- handle uevents in parallel while waiting for password input
- block uevent handling while actually setting up the crypt device
So we use libcryptsetup and add a mutex while setting up the crypt
device.
|
|
|
|
|
| |
Use a bit mask to indicate trigger thread. This is so we can have more
threads in future.
|
|
|
|
|
|
|
|
|
| |
Fix issue where /dev/vg0/lv_device is used as crypt device. We compare
the major/minor of the event with the device we are searching for. That
way we can find the device we are looking for regardless of the name it
gets.
ref #4863
|
|
|
|
|
|
|
| |
- print only once when we reset timeout
- print what the timeout was set to on exit
This helps to show if what we were looking for was found or not
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-rw-r--r-- 1 tteras tteras 13922864 Oct 28 08:38 initramfs-new
-rw-r--r-- 1 tteras tteras 12645566 Oct 28 08:27 initramfs-old
diff on installed modules:
+lib/firmware/matrox/g200_warp.fw
+lib/firmware/matrox/g400_warp.fw
+lib/firmware/cxgb3/t3c_psram-1.1.0.bin
+lib/firmware/cxgb3/ael2020_twx_edc.bin
+lib/firmware/cxgb3/t3fw-7.12.0.bin
+lib/firmware/cxgb3/ael2005_opt_edc.bin
+lib/firmware/cxgb3/t3b_psram-1.1.0.bin
+lib/firmware/cxgb3/ael2005_twx_edc.bin
+lib/firmware/qlogic/12160.bin
+lib/firmware/qlogic/1040.bin
+lib/firmware/qlogic/1280.bin
+lib/firmware/ql2400_fw.bin
+lib/firmware/ql2100_fw.bin
+lib/firmware/ene-ub6250/sd_init1.bin
+lib/firmware/ene-ub6250/ms_init.bin
+lib/firmware/ene-ub6250/ms_rdwr.bin
+lib/firmware/ene-ub6250/msp_rdwr.bin
+lib/firmware/ene-ub6250/sd_init2.bin
+lib/firmware/ene-ub6250/sd_rdwr.bin
+lib/firmware/advansys/38C1600.bin
+lib/firmware/advansys/mcode.bin
+lib/firmware/advansys/38C0800.bin
+lib/firmware/advansys/3550.bin
+lib/firmware/ql2500_fw.bin
+lib/firmware/isci/isci_firmware.bin
+lib/firmware/r128/r128_cce.bin
+lib/firmware/ql2300_fw.bin
+lib/firmware/ql2322_fw.bin
-lib/firmware/radeon/TAHITI_vce.bin
+lib/firmware/ql2200_fw.bin
+lib/firmware/cxgb4
+lib/firmware/cxgb4/t4fw.bin
+lib/firmware/cxgb4/t5fw.bin
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
just to be on the safe side
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
this is so we also can specify cryptroot=/dev/sdaX at boot prompt
|
|
|
|
| |
in theory we should be able to have apkovl on LUKS device
|
|
|
|
| |
we need actually pass the $cryptopts to nlplug-findfs
|
| |
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|