From me at byteaction.de Wed Mar 21 09:04:54 2012 From: me at byteaction.de (Markus Eyrich) Date: Wed, 21 Mar 2012 10:04:54 +0100 Subject: Anaconda - progress_gui.py Message-ID: <4F6999B6.1010703@byteaction.de> Hi There, I'm about to build a customized Centos 6 Installer Disc and try to replace graphics "while" installing. Under CentOS 5 ie. with an older anaconda release i could place "several" graphics to a folder inside the anaconda package, they resided in "/usr/share/anaconda/pixmaps/rnotes/" and/or "/usr/share/anaconda/pixmaps/rnotes/lang (ie. de)". Those graphics were displayed while the installer runs and is installing packages. On Centos 6 (Anaconda 13.21.149) there is still a folder "/usr/share/anaconda/pixmaps" but no folder "rnotes". I tried to create the folder and put graphics inside, no-go. I tried to create the folder and a "de" folder (german) under it, put graphics into it, still no-go. I loooked at the progress_gui.py and if i understand it right, the upper procedure SHOULD work, but it doesn't. Anyone got a clue ? regards, Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: From mawenqi108 at gmail.com Wed Mar 21 09:51:16 2012 From: mawenqi108 at gmail.com (Wenqi Ma) Date: Wed, 21 Mar 2012 17:51:16 +0800 Subject: Anaconda - progress_gui.py In-Reply-To: <4F6999B6.1010703@byteaction.de> References: <4F6999B6.1010703@byteaction.de> Message-ID: Hi, Markus Eyrich I am not sure if your problem is same with me. As I know, in the anaconda (13.21.82) in CentOS 6.0, only the progress_first.png will be read as the installation progress background figure. All pictures in rnotes folder would be never read and used. So if only one picture is used as background, you can replace the progress_first.png. But if you have multiple pictures to switch over between each other, there is no easy way unless migrating the code from older anaconda in CentOS 5. ? 2012?3?21? ??5:04?Markus Eyrich ??? > Hi There, > > I'm about to build a customized Centos 6 Installer Disc and try to replace > graphics "while" installing. Under CentOS 5 ie. with an older anaconda > release i could place "several" graphics to a folder inside the anaconda > package, they resided in "/usr/share/anaconda/pixmaps/rnotes/" and/or > "/usr/share/anaconda/pixmaps/rnotes/lang (ie. de)". Those graphics were > displayed while the installer runs and is installing packages. > > On Centos 6 (Anaconda 13.21.149) there is still a folder > "/usr/share/anaconda/pixmaps" but no folder "rnotes". I tried to create the > folder and put graphics inside, no-go. I tried to create the folder and a > "de" folder (german) under it, put graphics into it, still no-go. > > I loooked at the progress_gui.py and if i understand it right, the upper > procedure SHOULD work, but it doesn't. > > Anyone got a clue ? > > regards, > > Markus > > > _______________________________________________ > Kickstart-list mailing list > Kickstart-list at redhat.com > https://www.redhat.com/mailman/listinfo/kickstart-list > -- ??? ??? ???18951713819 -------------- next part -------------- An HTML attachment was scrubbed... URL: From clumens at redhat.com Wed Mar 21 13:53:47 2012 From: clumens at redhat.com (Chris Lumens) Date: Wed, 21 Mar 2012 09:53:47 -0400 Subject: Anaconda - progress_gui.py In-Reply-To: <4F6999B6.1010703@byteaction.de> References: <4F6999B6.1010703@byteaction.de> Message-ID: <20120321135347.GQ2073@exeter.usersys.redhat.com> > I'm about to build a customized Centos 6 Installer Disc and try to > replace graphics "while" installing. Under CentOS 5 ie. with an > older anaconda release i could place "several" graphics to a folder > inside the anaconda package, they resided in > "/usr/share/anaconda/pixmaps/rnotes/" and/or > "/usr/share/anaconda/pixmaps/rnotes/lang (ie. de)". Those graphics > were displayed while the installer runs and is installing packages. > > On Centos 6 (Anaconda 13.21.149) there is still a folder > "/usr/share/anaconda/pixmaps" but no folder "rnotes". I tried to > create the folder and put graphics inside, no-go. I tried to create > the folder and a "de" folder (german) under it, put graphics into > it, still no-go. > > I loooked at the progress_gui.py and if i understand it right, the > upper procedure SHOULD work, but it doesn't. The rnotes code hasn't been used since somewhere back around RHEL4 or RHEL3, so it's entirely possible it no longer works. We simply haven't had those images to display in a very long time. - Chris From me at byteaction.de Wed Mar 21 16:08:58 2012 From: me at byteaction.de (Markus Eyrich) Date: Wed, 21 Mar 2012 17:08:58 +0100 Subject: Anaconda - progress_gui.py Message-ID: <4F69FD1A.7000907@byteaction.de> Oh well, thanks guys. The rnotes Code has worked in CentOS 5.x, i already did that there... The code i refer to in the new progress_gui.py is that: def _getRnotes(self): langs = [] pixmaps = [] if (os.environ.has_key('LANG')): langs = language.expandLangs(os.environ['LANG']) langs.append('') pixmaps = [] paths = ("/tmp/product/pixmaps/rnotes/%s/*.png", "/usr/share/anaconda/pixmaps/rnotes/%s/*.png") for p in paths: for lang in langs: path = p % lang pixmaps = glob.glob(path) if len(pixmaps) > 0: break if len(pixmaps) > 0: files = pixmaps else: files = ["progress_first.png"] return files def getScreen (self, anaconda): self.intf = anaconda.intf if anaconda.dir == DISPATCH_BACK: self.intf.icw.prevClicked() return self.pixmaps = self._getRnotes() It looked to me that creating a folder, let's say rnotes/de/ and putting ..png's in there would do the trick, but it won't. Maybe i try to use the old progress_guy.py file or just try to use the old code snippet .. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ks-list at puzzled.xs4all.nl Wed Mar 28 22:38:01 2012 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Thu, 29 Mar 2012 00:38:01 +0200 Subject: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run) Message-ID: <4F7392C9.7050506@puzzled.xs4all.nl> Hi, I am trying to do something like this in the %post section of the kickstart file for my F16 workstation: # setup libvirt network cat > /home/patrick/Downloads/vmr.xml < vmr EOF # make sure libvirtd is started service libvirtd restart # add the network virsh net-define vmr.xml virsh net-start vmr virsh net-autostart vmr Unfortunately the virsh commands fail because it seems it is not possible to start libvirtd and afaict virsh requires libvirtd. Anyone have any suggestions how to make this work? Thanks! Regards, Patrick From hbrown at divms.uiowa.edu Thu Mar 29 19:13:00 2012 From: hbrown at divms.uiowa.edu (Hugh Brown) Date: Thu, 29 Mar 2012 14:13:00 -0500 Subject: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run) In-Reply-To: <4F7392C9.7050506@puzzled.xs4all.nl> References: <4F7392C9.7050506@puzzled.xs4all.nl> Message-ID: <4F74B43C.9090206@divms.uiowa.edu> On 03/28/2012 05:38 PM, Patrick Lists wrote: > Hi, > > I am trying to do something like this in the %post section of the > kickstart file for my F16 workstation: > > # setup libvirt network > cat > /home/patrick/Downloads/vmr.xml < > vmr > > > > > > EOF > > # make sure libvirtd is started > service libvirtd restart > > # add the network > virsh net-define vmr.xml > virsh net-start vmr > virsh net-autostart vmr > > Unfortunately the virsh commands fail because it seems it is not > possible to start libvirtd and afaict virsh requires libvirtd. > > Anyone have any suggestions how to make this work? > > Thanks! > > Regards, > Patrick > On my F16, I wasn't able to start cups via systemctl or via the service command. I had to start it via /usr/sbin/cupsd. I expect that you'll need to start libvirtd by hand rather than by using /sbin/service. You'll also likely need to stop it once you are done calling virsh. Hugh From ks-list at puzzled.xs4all.nl Fri Mar 30 10:08:14 2012 From: ks-list at puzzled.xs4all.nl (Patrick Lists) Date: Fri, 30 Mar 2012 12:08:14 +0200 Subject: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run) In-Reply-To: <4F74B43C.9090206@divms.uiowa.edu> References: <4F7392C9.7050506@puzzled.xs4all.nl> <4F74B43C.9090206@divms.uiowa.edu> Message-ID: <4F75860E.2090902@puzzled.xs4all.nl> On 03/29/2012 09:13 PM, Hugh Brown wrote: > On my F16, I wasn't able to start cups via systemctl or via the service > command. I had to start it via /usr/sbin/cupsd. > > I expect that you'll need to start libvirtd by hand rather than by using > /sbin/service. > > You'll also likely need to stop it once you are done calling virsh. Thanks I'll give that a try. Regards, Patrick From sean at CloudShield.com Fri Mar 30 17:08:34 2012 From: sean at CloudShield.com (Goller, Sean) Date: Fri, 30 Mar 2012 10:08:34 -0700 Subject: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run) In-Reply-To: <4F7392C9.7050506@puzzled.xs4all.nl> References: <4F7392C9.7050506@puzzled.xs4all.nl> Message-ID: Just copy the xml file manually into /etc/libvirt/qemu/networks/ , then put a symlink to it in /etc/libvirt/qemu/networks/autostart/ . Create the network on an existing system then check out those directories to see how it's set up. -Sean. -----Original Message----- From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Patrick Lists Sent: Wednesday, March 28, 2012 3:38 PM To: kickstart-list at redhat.com Subject: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run) Hi, I am trying to do something like this in the %post section of the kickstart file for my F16 workstation: # setup libvirt network cat > /home/patrick/Downloads/vmr.xml < vmr EOF # make sure libvirtd is started service libvirtd restart # add the network virsh net-define vmr.xml virsh net-start vmr virsh net-autostart vmr Unfortunately the virsh commands fail because it seems it is not possible to start libvirtd and afaict virsh requires libvirtd. Anyone have any suggestions how to make this work? Thanks! Regards, Patrick _______________________________________________ Kickstart-list mailing list Kickstart-list at redhat.com https://www.redhat.com/mailman/listinfo/kickstart-list