Re: [PATCH] Don't rebuild the initramfs with dracut

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, August 18 2009, Dennis Gilmore said:
> On Tuesday 18 August 2009 01:11:15 pm Jeremy Katz wrote:
> > A dracut based initramfs should be perfectly good for the purposes
> > of booting the post-live system as well.  So don't recreate it
> > ---
> >  livecd.py |    4 +++-
> >  1 files changed, 3 insertions(+), 1 deletions(-)
> >
> > diff --git a/livecd.py b/livecd.py
> > index 7efcd90..bfbe2ba 100644
> > --- a/livecd.py
> > +++ b/livecd.py
> > @@ -374,7 +374,9 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
> >          # rebuild the initrd(s)
> >          vers = self.kernelVersionList(anaconda.rootPath)
> >          for (n, arch, tag) in vers:
> > -            packages.recreateInitrd(n, anaconda.rootPath)
> > +            # with dracut, we don't really need to recreate the initrds
> > +            if not os.path.exists("%s/boot/initrd-generic-%s.img"
> > %(anaconda.rootPath, n)): +                packages.recreateInitrd(n,
> > anaconda.rootPath)
> >
> >      def writeConfiguration(self):
> >          pass
> at least on sparc we still need to create a stripped down initrd for tftp 
> installs where we need to have the initrd and kernel under 10mb 

This is during livecd installs.  So ... :-)

Jeremy

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux