public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] problems with dracut
@ 2021-02-12 14:39 John Covici
  2021-02-13 14:38 ` John Covici
  2021-02-13 17:19 ` Rich Freeman
  0 siblings, 2 replies; 5+ messages in thread
From: John Covici @ 2021-02-12 14:39 UTC (permalink / raw
  To: gentoo-user

Hi.  I am having problems running dracut 0.51-r2 and 0.50-r2.  The
problem is that I have two  install_items lines like this
install_items+= /etc/modprobe.d/zfs.conf
install_items+= /etc/systemd/system/initrd-switch-root.service

and dracut says permission denied on both of them.  They are owned by
root and are world readable and containing directories look good.  I
even did an strace, but did not find where it tried to open those
files.  I have been using dracut for years and never had this problem
till recent versions.

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] problems with dracut
  2021-02-12 14:39 [gentoo-user] problems with dracut John Covici
@ 2021-02-13 14:38 ` John Covici
  2021-02-13 17:19 ` Rich Freeman
  1 sibling, 0 replies; 5+ messages in thread
From: John Covici @ 2021-02-13 14:38 UTC (permalink / raw
  To: gentoo-user

I have some more information.   If I  chmod 777 on
/etc/modprobe.d/zfs.conf  it says options command not found, options
is the first word in the file which is
options zfs zfs_arc_max=0x100000000

Now if I put the files together on one line I get
/etc/dracut.conf:install_items+= "/etc/modprobe.d/zfs.conf
/etc/systemd/system/initrd-switch-root.service"

dracut: WARNING: <key>+=" <values> ": <values> should have surrounding
white spaces!
dracut: WARNING: This will lead to unwanted side effects! Please fix
the configuration file.

/etc/dracut.conf: line 54: /etc/modprobe.d/zfs.conf
/etc/systemd/system/initrd-switch-root.service: No such file or
directory

It seems to be treating it as one file.  If I separate the files into
two install_items lines, I get what I described in the original
message.

On Fri, 12 Feb 2021 09:39:38 -0500,
John Covici wrote:
> 
> Hi.  I am having problems running dracut 0.51-r2 and 0.50-r2.  The
> problem is that I have two  install_items lines like this
> install_items+= /etc/modprobe.d/zfs.conf
> install_items+= /etc/systemd/system/initrd-switch-root.service
> 
> and dracut says permission denied on both of them.  They are owned by
> root and are world readable and containing directories look good.  I
> even did an strace, but did not find where it tried to open those
> files.  I have been using dracut for years and never had this problem
> till recent versions.
> 
> Thanks in advance for any suggestions.
> 
> -- 
> Your life is like a penny.  You're going to lose it.  The question is:
> How do
> you spend it?
> 
>          John Covici wb2una
>          covici@ccs.covici.com
> 

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] problems with dracut
  2021-02-12 14:39 [gentoo-user] problems with dracut John Covici
  2021-02-13 14:38 ` John Covici
@ 2021-02-13 17:19 ` Rich Freeman
  2021-02-13 17:25   ` John Covici
  2021-02-14 13:48   ` John Covici
  1 sibling, 2 replies; 5+ messages in thread
From: Rich Freeman @ 2021-02-13 17:19 UTC (permalink / raw
  To: gentoo-user

On Fri, Feb 12, 2021 at 9:39 AM John Covici <covici@ccs.covici.com> wrote:
>
> Hi.  I am having problems running dracut 0.51-r2 and 0.50-r2.  The
> problem is that I have two  install_items lines like this
> install_items+= /etc/modprobe.d/zfs.conf
> install_items+= /etc/systemd/system/initrd-switch-root.service
>

I'd keep the two separate lines and add --debug to the command line
(and anything else verbosity-related, consider strace if that doesn't
give you clues).  Your issue is with generation and not boot (right
now), so just focus on the actual build process.

Haven't seen this issue and will take a look as I run dracut+zfs, but
any debugging output you can get out of this will probably help.

-- 
Rich


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] problems with dracut
  2021-02-13 17:19 ` Rich Freeman
@ 2021-02-13 17:25   ` John Covici
  2021-02-14 13:48   ` John Covici
  1 sibling, 0 replies; 5+ messages in thread
From: John Covici @ 2021-02-13 17:25 UTC (permalink / raw
  To: gentoo-user

On Sat, 13 Feb 2021 12:19:42 -0500,
Rich Freeman wrote:
> 
> On Fri, Feb 12, 2021 at 9:39 AM John Covici <covici@ccs.covici.com> wrote:
> >
> > Hi.  I am having problems running dracut 0.51-r2 and 0.50-r2.  The
> > problem is that I have two  install_items lines like this
> > install_items+= /etc/modprobe.d/zfs.conf
> > install_items+= /etc/systemd/system/initrd-switch-root.service
> >
> 
> I'd keep the two separate lines and add --debug to the command line
> (and anything else verbosity-related, consider strace if that doesn't
> give you clues).  Your issue is with generation and not boot (right
> now), so just focus on the actual build process.
> 
> Haven't seen this issue and will take a look as I run dracut+zfs, but
> any debugging output you can get out of this will probably help.

I did a debug and even the highest log level, but this is so early in
the process that was not much to go on.  I also did an strace, but
could not find where it was trying to open the files in question --
lots of child processes, so maybe I missed it -- I will have to see if
there is a way to have strace look at those.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] problems with dracut
  2021-02-13 17:19 ` Rich Freeman
  2021-02-13 17:25   ` John Covici
@ 2021-02-14 13:48   ` John Covici
  1 sibling, 0 replies; 5+ messages in thread
From: John Covici @ 2021-02-14 13:48 UTC (permalink / raw
  To: gentoo-user

On Sat, 13 Feb 2021 12:19:42 -0500,
Rich Freeman wrote:
> 
> On Fri, Feb 12, 2021 at 9:39 AM John Covici <covici@ccs.covici.com> wrote:
> >
> > Hi.  I am having problems running dracut 0.51-r2 and 0.50-r2.  The
> > problem is that I have two  install_items lines like this
> > install_items+= /etc/modprobe.d/zfs.conf
> > install_items+= /etc/systemd/system/initrd-switch-root.service
> >
> 
> I'd keep the two separate lines and add --debug to the command line
> (and anything else verbosity-related, consider strace if that doesn't
> give you clues).  Your issue is with generation and not boot (right
> now), so just focus on the actual build process.
> 
> Haven't seen this issue and will take a look as I run dracut+zfs, but
> any debugging output you can get out of this will probably help.
> 

I got private mail from someone -- I also posted to the initramfs
mailing list, and he suggested to do --install followed by the string
from the command line and dracut took it!  Have not tried to reboot
with that kernel yet, but I thought I'd put this out in case someone
else runs into this.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-14 13:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-12 14:39 [gentoo-user] problems with dracut John Covici
2021-02-13 14:38 ` John Covici
2021-02-13 17:19 ` Rich Freeman
2021-02-13 17:25   ` John Covici
2021-02-14 13:48   ` John Covici

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox