Hi, Socct
I debug the codes and have new questions.
There's no live cd grub because:
(imgcreate/live.py)
557
558 def __get_image_stanzas(self, isodir):
559 kernels = self._get_kernel_versions() <==== here
return empty dict: {}
560 kernel_options = self._get_kernel_options()
561 checkisomd5 = self._has_checkisomd5()
AND
(imgcreate/creater.py function _get_kernel_versions defined here)
278 version = None
279 for f in header['filenames']:
280 if f.startswith('/boot/vmlinuz-'):
281 version = f[14:]
282 return version
283
284 ts = rpm.TransactionSet(self._instroot)
285
286 ret = {}
287 for header in ts.dbMatch('provides', 'kernel'): <=====
ts.dbMatch.count is 0 (so no header and empty ret)
288 version = get_version(header)
289 if version is None:
290 continue
291
292 name = header['name']
293 if not name in ret:
294 ret[name] = [version]
295 elif not version in ret[name]:
296 ret[name].append(version)
297
298 return ret
I tried to understand what's rpm.TransactionSet here, but I found this is
imported from a .so file.
I have no idea to find where the source codes of this 'ts'
BTW, the value of self._instroot is '/var/tmp/imgcreate_asdda/install_root'
and my kickstart file is standard I think:
lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selinux --enforcing
firewall --disabled
part / --size 1024
repo --name=development --mirrorlist=
http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
%packages
@standard
%end
My package version is 18.15 and run in new installed fedora 18
On Wed, Apr 24, 2013 at 10:27 AM, Gareth <academicgareth(a)gmail.com> wrote:
Hi Socct
I have just checked my lived-tools version: 18.15
I'm now downgrade it into 18.14 as yours to test
But I found 18.19 tag in source code, is this newest version you mentioned?
On Wed, Apr 24, 2013 at 1:25 AM, Gareth <academicgareth(a)gmail.com> wrote:
> Thanks Socct[?]
>
>
> On Wed, Apr 24, 2013 at 1:24 AM, Scott Dowdle <dowdle(a)montanalinux.org>wrote:
>
>> Greetings,
>>
>> ----- Original Message -----
>> > The last question: if I want to convert an existing system(Fedora)
>> > into livecd, I could use --shell for installing package. Is there
>> > any else solution?
>>
>> That is not something I've done so no advice from me on that.
>>
>> TYL,
>> --
>> Scott Dowdle
>> 704 Church Street
>> Belgrade, MT 59714
>> (406)388-0827 [home]
>> (406)994-3931 [work]
>> --
>> livecd mailing list
>> livecd(a)lists.fedoraproject.org
>>
https://admin.fedoraproject.org/mailman/listinfo/livecd
>>
>
>
>
> --
> Gareth
>
> *Cloud Computing, Openstack, Fitness, Basketball
> *
> *OpenStack contributor*
> *My promise: if you find any spelling or grammar mistakes in my email
> from Mar 1 2013, notify me *
> *and I'll donate $1 or ¥1 to an open organization you specify.*
>
--
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*OpenStack contributor*
*My promise: if you find any spelling or grammar mistakes in my email
from Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*
--
Gareth
*Cloud Computing, Openstack, Fitness, Basketball
*
*OpenStack contributor*
*My promise: if you find any spelling or grammar mistakes in my email from
Mar 1 2013, notify me *
*and I'll donate $1 or ¥1 to an open organization you specify.*