Skip to content

Instantly share code, notes, and snippets.

@lbt
Created July 4, 2012 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbt/3047101 to your computer and use it in GitHub Desktop.
Save lbt/3047101 to your computer and use it in GitHub Desktop.
# -*-mic2-options-*- -f liveusb --record-pkgs=name --pkgmgr=yum --arch=i686 -*-mic2-options-*-
#
# Do not Edit! Generated by:
# kickstarter.py
#
lang en_US.UTF-8
keyboard us
timezone --utc Europe/London
part / --size 3000 --ondisk sda --fstype=ext3
rootpw mer
xconfig --startxonboot
bootloader --timeout=0 --append="quiet"
user --name mer --groups audio,video --password mer
repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/i586/packages/ --save --debuginfo
repo --name=ce-adaptation-x86-generic --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/x86-generic/Mer_Core_i586/ --save
repo --name=ce-utils --baseurl=http://repo.pub.meego.com/CE:/Utils/Mer_Core_i586/ --save
repo --name=mer-tools --baseurl=http://repo.pub.meego.com//Mer:/Tools/Mer_Core_i586/ --save
repo --name=stskeeps-tests --baseurl=http://repo.pub.meego.com/home:/stskeeps:/tools-testing-eat/Mer_Core_i586/ --save --debuginfo --source
#repo --name=ce-mw-shared --baseurl=http://repo.pub.meego.com/CE:/MW:/Shared/Mer_Core_i586/ --save
#repo --name=ce-mw-mtf --baseurl=http://repo.pub.meego.com/CE:/MW:/MTF/CE_MW_Shared_i586/ --save
#repo --name=ce-apps --baseurl=http://repo.pub.meego.com/CE:/Apps/CE_MW_Shared_i586/ --save
#repo --name=ce-apps-mtf --baseurl=http://repo.pub.meego.com/CE:/Apps:/MTF/CE_MW_MTF_i586/ --save
#repo --name=ce-ux-mtf --baseurl=http://repo.pub.meego.com/CE:/UX:/MTF/CE_MW_MTF_i586/ --save
#repo --name=ce-mtf-tracker-related-apps --baseurl=http://repo.pub.meego.com/Project:/MTF:/Tracker/CE_UX_MTF_i586/ --save
%packages
@Mer Core
@Mer Graphics Common
@Mer Connectivity
#@Nemo Middleware Shared
#@Nemo Utils
#@Nemo Apps
#@Nemo Apps MTF
#@MTF Handset UX
#@MTF Tracker Related Apps
@Intel x86 Generic Support
@Mer Minimal Xorg
xorg-x11-server-Xorg-setuid
-xorg-x11-server-Xorg
kernel-adaptation-pc
openssh-clients
openssh-server
#xterm
less
#ce-backgrounds
#plymouth-lite
vim-enhanced
connman-test
# Testrunner Device side
eat-device
blts-x11-tests
# for
qt5-qtqml-qmlscene
qt5-qtqml-import-qtquick2plugin
qt5-plugin-platform-xcb
qt5-plugin-imageformat-jpeg
qt-qmlviewer
%end
%post
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
# Prelink can reduce boot time
if [ -x /usr/sbin/prelink ]; then
/usr/sbin/prelink -aRqm
fi
# Hack to fix the plymouth based splash screen on N900
#mv /usr/bin/ply-image /usr/bin/ply-image-real
#cat > /usr/bin/ply-image << EOF
##!/bin/sh
#echo 32 > /sys/class/graphics/fb0/bits_per_pixel
#exec /usr/bin/ply-image-real $@
#EOF
#chmod +x /usr/bin/ply-image
# Remove cursor from showing during startup BMC#14991
echo "xopts=-nocursor" >> /etc/sysconfig/uxlaunch
cat <<EOF > /etc/sysconfig/wifi
SSID=""
wpa_phrase=""
EOF
cat <<'EOF' > /usr/local/bin/start_wifi
#!/bin/bash
. /etc/sysconfig/wifi
/usr/lib/connman/test/test-connman enable wifi
ID=$(/usr/lib/connman/test/test-connman services | grep $SSID | sed -e 's/.*{ \(.*\) \}/\1/;')
/usr/lib/connman/test/simple-agent SSID=$SSID Passphrase="$wpa_phrase" &
/usr/lib/connman/test/test-connman connect $ID
EOF
chmod +x /usr/local/bin/start_wifi
cat << EOF > /etc/systemd/system/enablewifi.service
[Unit]
Description=Enable WiFi
After=connman.service
[Service]
Type=oneshot
ExecStart=/usr/local/bin/start_wifi
EOF
# QML Viewer session
cat > /usr/share/xsessions/X-MER-QMLVIEWER.desktop << EOF
[Desktop Entry]
Version=1.0
Name=qmlviewer
Exec=/usr/bin/qmlviewer
Type=Application
EOF
# Set symlink pointing to .desktop file
ln -sf X-MER-QMLVIEWER.desktop /usr/share/xsessions/default.desktop
# Setup for testrunner
su -c 'eat-add-device-key' - root
su -c 'eat-add-device-key' - mer
%end
%post --nochroot
if [ -n "$IMG_NAME" ]; then
echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/mer-release
fi
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment