1 |
On Mon, Nov 30, 2015 at 12:24 PM, Steven Lembark <lembark@×××××××.com> wrote: |
2 |
> |
3 |
> I've tried tracing the logic produced by dracut to see why it failed, |
4 |
> but at over 1000 lines I do not have time to verify its logic and see |
5 |
> where it failed; ditto genkernel: there is too much logic to ignore |
6 |
> checking modules that don't exist because they are in the kernel. |
7 |
> |
8 |
|
9 |
Did you try enabling debug output on dracut and an emergency shell? |
10 |
The debug output is quite verbose in general and tends to give you a |
11 |
good idea of where the problem lies (worst case you can add more |
12 |
output if the specific function lacks it). You can then try running |
13 |
commands from the emergency shell to get root mounted and see if that |
14 |
works, which will give you an idea of what is needed to fix the |
15 |
problem. |
16 |
|
17 |
As long as you mount the root on whatever mount point it creates |
18 |
(/sysroot or something like that) and exit the shell, dracut will |
19 |
attempt to complete the boot using the new root. |
20 |
|
21 |
Oh, one other gotcha with dracut is that you need a valid /etc/fstab |
22 |
for your root partition. Since root is typically not mounted with |
23 |
fstab with other initramfs systems sometimes it gets neglected. |
24 |
Dracut attempts to mount it using its internal configuration, and then |
25 |
remount it using the settings in /etc/fstab. If you have a really |
26 |
tricky setup there is also an fstab.sys module (or something along |
27 |
those lines) that lets you create a special initramfs fstab in /etc |
28 |
which contains just filesystems that need to be mounted early - dracut |
29 |
embeds this file inside the initramfs and will mount everything it in |
30 |
before launching init so it is useful if something like /sbin or |
31 |
/usr/lib or whatever is on its own mountpoint). |
32 |
|
33 |
|
34 |
-- |
35 |
Rich |