环境:ubuntu11.10

制作bootstrap:

sudomic-create-bootstrap -n trunk -k rpms -rhttp://repo.meego.com/MeeGo/builds/trunk/latest/repos/oss/ia32/packages/-o /home/zhanghui/Mer/buildrootfs/cache/mer-bootstrap


制作rootfs:

sudomic-image-creator --config=mer-qtmediahub-armv7l.ks --format=fs--bootstrap=/home/zhanghui/Mer/buildrootfs/cache/mer-bootstrap--cache=rpms --outdir=/home/zhanghui/Mer/mer-base-rootfs--arch=armv7l –pkgmgr=yum

说明:

--format=fs:会在outdir下根据当前时间创建新的目录来存放rootfs

--pkgmgr=yum表示用yum

默认用zypper,但据说zypperBUG。如果不指定yum,会报错:

Registering package manager: zypp
Registering package manager: yum
Use package manager zypp
Use package manager zypp
Retrieving repo metadata from http://releases.merproject.org/releases/latest/builds/armv7l/packages ...
zypp architecture: armv7l
Problem count: 25

Problem:bash-1:3.2.51-1.4.Mer.armv7l 不能安装


mer-qtmediahub-armv7l.ks的内容如下:

#-*-mic2-options-*- --arch=armv7l -*-mic2-options-*-

#

# Donot Edit! Generated by:

#kickstarter.py

#

langen_US.UTF-8

keyboardus

timezone--utc UTC

part /--size 500 --ondisk sda --fstype=ext4

rootpwrootme

user--name mer --groups audio,video --password rootme

repo--name=mer-core--baseurl=http://releases.merproject.org/releases/0.20120120.1/builds/armv7l/packages--save --debuginfo --source

repo--name=mer-qtmediahub--baseurl=http://repo.pub.meego.com/home%3a/stskeeps%3a/branches%3a/home%3a/vgrade%3a/qtmediahub/Mer_Core_armv7l/

repo--name=mer-PA2--baseurl=http://repo.pub.meego.com/home%3a/vgrade%3a/PA2/Mer_Core_armv7l/

%packages--excludedocs

@MerGraphics Common

@MerMinimal Xorg

@MerCore

xorg-x11-drv-evdev

xorg-x11-drv-vesa

xorg-x11-drv-fbdev

-cjkuni-fonts

qtmediahub

libdeclarative-multimedia

libqtdeclarative4-particles

-e2fsprogs

-kbd

-liberation-mono-fonts

-liberation-serif-fonts

-droid-sans-fonts

-droid-sans-mono-fonts

-liberation-fonts-common

-usbutils

-zypper

%end

%post

cat >/usr/share/xsessions/x-meego-qtmediahub.desktop << EOF

[DesktopEntry]

Version=1.0

Name=qtmediahubsession

Exec=/usr/bin/qtmediahub-opengl-usage false

Type=Application

EOF

#depmod-a

# Setsymlink pointing to .desktop file

ln -sfx-meego-qtmediahub.desktop /usr/share/xsessions/default.desktop

%end

%post--nochroot

%end


Posted on 2012-02-02 22:02  sonach  阅读(343)  评论(0编辑  收藏  举报