FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 05-12-2010, 08:15 AM
Martin Gracik
 
Default Add chvt and eject commands to the initrd.img (#591070)

Well, I think that %pre is run before the stage2

--

Martin Gracik

----- "Hans de Goede" <hdegoede@redhat.com> wrote:

> Hi,
>
> I fail to see why these need to be in the initrd. The kickstart %pre
> script
> is run from python code, iow from stage2.
>
> The same applies to the other 2 patches in this set.
>
> Regards,
>
> Hans
>
> On 05/12/2010 09:56 AM, Martin Gracik wrote:
> > We need to have these files in initrd.img so they can
> > be used in the %pre section of kickstart files.
> > ---
> > scripts/mk-images | 2 ++
> > scripts/upd-instroot | 1 +
> > 2 files changed, 3 insertions(+), 0 deletions(-)
> >
> > diff --git a/scripts/mk-images b/scripts/mk-images
> > index bffb5bc..723fe15 100755
> > --- a/scripts/mk-images
> > +++ b/scripts/mk-images
> > @@ -821,6 +821,8 @@ makeinitrd() {
> > instbin $IMGPATH /usr/bin/sleep $MBD_DIR /sbin/sleep
> > instbin $IMGPATH /usr/bin/touch $MBD_DIR /sbin/touch
> > instbin $IMGPATH /usr/bin/wget $MBD_DIR /sbin/wget
> > + instbin $IMGPATH /usr/bin/chvt $MBD_DIR /sbin/chvt
> > + instbin $IMGPATH /usr/bin/eject $MBD_DIR /sbin/eject
> >
> > # Indirect dependencies
> > for nsslib in freebl3 softokn3 nssdbm3 ; do
> > diff --git a/scripts/upd-instroot b/scripts/upd-instroot
> > index 79e962c..cdaf650 100755
> > --- a/scripts/upd-instroot
> > +++ b/scripts/upd-instroot
> > @@ -523,6 +523,7 @@ usr/bin/Xorg
> > usr/bin/Xvnc
> > usr/bin/chattr*
> > usr/bin/chvt
> > +usr/bin/eject
> > usr/bin/clear
> > usr/bin/dbus-launch
> > usr/bin/dbus-launch
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-12-2010, 08:19 AM
Martin Gracik
 
Default Add chvt and eject commands to the initrd.img (#591070)

And now I think I'm wrong never mind the patches

--

Martin Gracik

----- "Martin Gracik" <mgracik@redhat.com> wrote:

> Well, I think that %pre is run before the stage2
>
> --
>
> Martin Gracik
>
> ----- "Hans de Goede" <hdegoede@redhat.com> wrote:
>
> > Hi,
> >
> > I fail to see why these need to be in the initrd. The kickstart
> %pre
> > script
> > is run from python code, iow from stage2.
> >
> > The same applies to the other 2 patches in this set.
> >
> > Regards,
> >
> > Hans
> >
> > On 05/12/2010 09:56 AM, Martin Gracik wrote:
> > > We need to have these files in initrd.img so they can
> > > be used in the %pre section of kickstart files.
> > > ---
> > > scripts/mk-images | 2 ++
> > > scripts/upd-instroot | 1 +
> > > 2 files changed, 3 insertions(+), 0 deletions(-)
> > >
> > > diff --git a/scripts/mk-images b/scripts/mk-images
> > > index bffb5bc..723fe15 100755
> > > --- a/scripts/mk-images
> > > +++ b/scripts/mk-images
> > > @@ -821,6 +821,8 @@ makeinitrd() {
> > > instbin $IMGPATH /usr/bin/sleep $MBD_DIR /sbin/sleep
> > > instbin $IMGPATH /usr/bin/touch $MBD_DIR /sbin/touch
> > > instbin $IMGPATH /usr/bin/wget $MBD_DIR /sbin/wget
> > > + instbin $IMGPATH /usr/bin/chvt $MBD_DIR /sbin/chvt
> > > + instbin $IMGPATH /usr/bin/eject $MBD_DIR /sbin/eject
> > >
> > > # Indirect dependencies
> > > for nsslib in freebl3 softokn3 nssdbm3 ; do
> > > diff --git a/scripts/upd-instroot b/scripts/upd-instroot
> > > index 79e962c..cdaf650 100755
> > > --- a/scripts/upd-instroot
> > > +++ b/scripts/upd-instroot
> > > @@ -523,6 +523,7 @@ usr/bin/Xorg
> > > usr/bin/Xvnc
> > > usr/bin/chattr*
> > > usr/bin/chvt
> > > +usr/bin/eject
> > > usr/bin/clear
> > > usr/bin/dbus-launch
> > > usr/bin/dbus-launch
> >
> > _______________________________________________
> > Anaconda-devel-list mailing list
> > Anaconda-devel-list@redhat.com
> > https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

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

Thread Tools




All times are GMT. The time now is 09:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org