[Buildroot] Errors generating initramfs with dracut

Arnout Vandecappelle arnout at mind.be
Thu Nov 24 17:07:33 UTC 2022



On 23/11/2022 14:03, Becker, Fabian wrote:
> Hello Folks,
> 
> i'm currently evaluating initramfs generation with dracut in 2022.11-rc2 and 
> have encountered
> several errors. Not sure if this is a dracut or buildroot problem.

  Probably a bit of both :-)

[snip]
> dracut-install: ERROR: installing 
> '/home/dev/riva/output/host/lib/dracut/modules.d/90kernel-
> modules/parse-kernel.sh' to '/lib/dracut/hooks/cmdline/01-parse-kernel.sh'
> dracut: FAILED: /home/dev/riva/output/host/lib/dracut/dracut-install -r
> /home/dev/riva/output/build/buildroot-fs/cpio/target -D 
> /home/dev/riva/output/build/buildroot-
> fs/cpio/tmp/dracut.eB0FfP/initramfs 
> /home/dev/riva/output/host/lib/dracut/modules.d/90kernel-
> modules/parse-kernel.sh /lib/dracut/hooks/cmdline/01-parse-kernel.sh
> chmod: cannot access '/home/dev/riva/output/build/buildroot-
> fs/cpio/tmp/dracut.eB0FfP/initramfs//lib/dracut/hooks/cmdline/01-parse-kernel.sh': No such file or
> directory

  I would say this looks like a dracut problem: dracut is supposed to intall 
that file, but it doesn't seem to exist...

> dracut-install: ERROR: installing 
> '/home/dev/riva/output/host/lib/dracut/modules.d/90kernel-
> modules/insmodpost.sh' to '/sbin/insmodpost.sh'
> dracut: FAILED: /home/dev/riva/output/host/lib/dracut/dracut-install -r
> /home/dev/riva/output/build/buildroot-fs/cpio/target -D 
> /home/dev/riva/output/build/buildroot-
> fs/cpio/tmp/dracut.eB0FfP/initramfs 
> /home/dev/riva/output/host/lib/dracut/modules.d/90kernel-
> modules/insmodpost.sh /sbin/insmodpost.sh
> 
> Seems to be a problem with files installed via inst_simple from dracut-init.sh, 
> inst_multiple works
> just fine. I tried enabling debug switches in the call to dracut-install and 
> find out why it's
> failing, but that was not really helpful.

  Yann has been debugging a different dracut issue recently, perhaps he has some 
ideas on how to get better debugging info.

  dracut-install has --debug -and --logdir options, those may help.


  However, do these missing modules actually pose an issue? I think we get a 
bunch of error messages from dracut even in a known-to-be-working image. dracut 
is a bit of a mess.

  Regards,
  Arnout

> 
> Regards,
> 
> FB
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list