Hi list,

I was planning to add the bootsplash.org bootsplash support into the
moblin kernel,
and was able to do all the steps manually and successfully.

Now I want to make all these automatically done by an rpm file,
and wonder a right way to do it.

I did the steps below:
1. put the bootsplash patch into the kernel source dir.
2. put the initramfs * containing the bootsplash data into the kernel
source dir.
3. edit the spec file to apply the patch and to hold the INITRD.BOOTSPLASH.
4. edit the kernel config file to support bootsplash.
5. build the rpm.
6. I get an bootsplash enabled kernel and an pre-made INITRD.BOOTSPLAH.
*7. I have to manually edit grub.conf to add an "initrd
/path/to/INITRD.BOOTSPLAH" line.*
8. done.

Here comes the question:
* how to force the kernel rpm to use my INITRD.BOOTSPLAH?

I tried adding "new-kernel-pkg --initrdfile=/path/to/INITRD.BOOTSPLASH
..." in %%kernel_variant_post section,
and it worked if I manually ran rpm -ivh my_kernel.rpm,
I got "initrd /path/to/INITRD.BOOTSPLASH" line in grub.conf.

But it failed while I was using mic2 to build a liveusb image:

...
...
  Installing: PackageKit-udev-helper       ##################### [425/426]
  Installing: totem-gstreamer              ##################### [426/426]

Traceback (most recent call last):
  File "/usr/bin/moblin-image-creator", line 237, in <module>
    sys.exit(main())
  File "/usr/bin/moblin-image-creator", line 181, in main
    creator.configure()
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/creator.py",
line 667, in configure
    self._create_bootconfig()
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/live.py", line
204, in _create_bootconfig
    self._configure_bootloader(self.__ensure_isodir())
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/live.py", line
610, in _configure_bootloader
    self._configure_syslinux_bootloader(isodir)
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/live.py", line
516, in _configure_syslinux_bootloader
    cfg += self.__get_image_stanzas(isodir)
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/live.py", line
435, in __get_image_stanzas
    is_xen = self.__copy_kernel_and_initramfs(isodir, version, index)
  File "/usr/lib/python2.5/site-packages/mic/imgcreate/live.py", line
364, in __copy_kernel_and_initramfs
    isodir + "/isolinux/initrd" + index + ".img")
  File "/usr/lib/python2.5/shutil.py", line 46, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory:
'/var/tmp/imgcreate-XXXXXX/install_root/boot/initrd-2.6.29.rc2-13.1.moblin2-netbook.img'



* So, what is the correct way to force the kernel rpm to use my own
INITRD (and my kernel parameters)?

any info appreciated, thanks. :)

Regards,
jiason
_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to