Xiaoqiang0 (Talk | contribs) (→Create new image based on new RPM) |
(→Create new image based on new RPM) |
||
| Line 1: | Line 1: | ||
| - | + | You can create a new image based on your local repo | |
| - | + | ||
| - | + | ||
| - | + | ||
Steps as follows: | Steps as follows: | ||
| + | * Environment setup | ||
| + | install the package "createrepo" | ||
| - | *Create local repo for your new | + | * Create local repo for your new RPMs |
| + | $cp *.rpm /var/tmp/localrepo/ | ||
| + | $cd /var/tmp/localrepo/ | ||
| + | $createrepo . | ||
| - | + | * Modify ks file to add local repo | |
| - | + | Create your .ks file or get an existing ks file, 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/, for details about creating or updating ks file, please refer to: [[Image Configurations - KickStart Files]] | |
| - | + | ||
| - | *Modify ks file to add local repo | + | |
| - | + | ||
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=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. | *Using the new image to install or boot up on device. | ||
You can create a new image based on your local repo
Steps as follows:
install the package "createrepo"
$cp *.rpm /var/tmp/localrepo/ $cd /var/tmp/localrepo/ $createrepo .
Create your .ks file or get an existing ks file, 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/, 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=local --baseurl=file:///var/tmp/localrepo/ --save
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.