Meego Wiki
Views

Distribution/Create image based on new RPM

From MeeGo wiki
< Distribution(Difference between revisions)
Jump to: navigation, search
(Create new image based on new RPM)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
= Create new image based on new RPM =
+
== Prepare your repo ==
-
If you can’t launch MeeGo on your device, such as you need update kernel, in such case, you need create a new image based on your new RPMs.
+
=== Identify the live repo ===
 +
If you build the package by using OBS, you can create the image based on the live repo. To get the live repo, please find the project on the OBS which contains the package you built first, for example: Projects->home:xxxx:branches:Trunk, click the build repository, such as "Trunk", then click "Go to download repository", you will get the link to the live repo: http://download.meego.com/live/home:/xxxx:/branches:/Trunk/Trunk/
 +
=== Create local repo for your new RPMs ===
 +
If you build the package in your local build environment(not on OBS), you can create a local repo and create the new image based on your local repo.
 +
  $cp *.rpm /var/tmp/localrepo/
 +
  $cd /var/tmp/localrepo/
 +
  $createrepo .
-
Steps as follows:
+
== Modify ks file to add the repo ==
-
 
+
Create your .ks file or get an existing ks file, for example meego-ivi-ia32-1.2.0.ks can be found at http://repo.meego.com/MeeGo/releases/1.2.0/images/meego-ivi-ia32/, for details about creating or updating ks file, please refer to: [[Image Configurations - KickStart Files]]
-
*Create local repo for your new RPM
+
-
 
+
-
  cp *.rpm /var/tmp/localrepo/
+
-
  cd /var/tmp/localrepo/
+
-
  createrepo .
+
-
*Modify ks file to add local repo
+
-
Original ks file can be found with image, for example meego-ivi-ia32-1.2.0.ks can be found http://repo.meego.com/MeeGo/releases/1.2.0/images/meego-ivi-ia32/
+
Once you get the ks file, what you need to do is adding the follow line to ks file:
Once you get the ks file, what you need to do is adding the follow line to ks file:
 +
  $repo --name=live --baseurl=http://download.meego.com/live/home:/xxxx:/branches:/Trunk/Trunk/ --save
 +
  $repo --name=local --baseurl=file:///var/tmp/localrepo/ --save
-
  repo --name=local --baseurl=file:///var/tmp/localrepo/ --save
+
== Run mic2 using the new ks file to generate image ==
-
*Run mic2 using the new ks file to generate image
+
More mic2 information can reference to [[Image_Creation|Image Creation]]
More mic2 information can reference to [[Image_Creation|Image Creation]]
Here’s an example:
Here’s an example:
-
 
+
   $/usr/bin/mic-image-creator --config=/root/mic/ivi-ia32.ks  
-
   /usr/bin/mic-image-creator --config=/root/mic/ivi-ia32.ks  
+
Once mic-image-creator finished, you can find the new image from the output information.
Once mic-image-creator finished, you can find the new image from the output information.
-
 
-
*Using the new image to install or boot up on device.
 

Latest revision as of 14:41, 6 July 2011

Contents

Prepare your repo

Identify the live repo

If you build the package by using OBS, you can create the image based on the live repo. To get the live repo, please find the project on the OBS which contains the package you built first, for example: Projects->home:xxxx:branches:Trunk, click the build repository, such as "Trunk", then click "Go to download repository", you will get the link to the live repo: http://download.meego.com/live/home:/xxxx:/branches:/Trunk/Trunk/

Create local repo for your new RPMs

If you build the package in your local build environment(not on OBS), you can create a local repo and create the new image based on your local repo.

 $cp *.rpm /var/tmp/localrepo/
 $cd /var/tmp/localrepo/
 $createrepo .

Modify ks file to add the repo

Create your .ks file or get an existing ks file, for example meego-ivi-ia32-1.2.0.ks can be found at http://repo.meego.com/MeeGo/releases/1.2.0/images/meego-ivi-ia32/, for details about creating or updating ks file, please refer to: Image Configurations - KickStart Files

Once you get the ks file, what you need to do is adding the follow line to ks file:

 $repo --name=live --baseurl=http://download.meego.com/live/home:/xxxx:/branches:/Trunk/Trunk/ --save
 $repo --name=local --baseurl=file:///var/tmp/localrepo/ --save

Run mic2 using the new ks file to generate image

More mic2 information can reference to Image Creation

Here’s an example:

 $/usr/bin/mic-image-creator --config=/root/mic/ivi-ia32.ks 

Once mic-image-creator finished, you can find the new image from the output information.

Personal tools