Skip to content

Instantly share code, notes, and snippets.

@locusf
Created October 3, 2015 16:03
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 locusf/c53c86297b15ab93eace to your computer and use it in GitHub Desktop.
Save locusf/c53c86297b15ab93eace to your computer and use it in GitHub Desktop.
# -*-mic2-options-*- -f fs --compress-disk-image=tar.bz2 --copy-kernel --record-pkgs=name --pkgmgr=zypp --arch=armv7hl -*-mic2-options-*-
#
# Do not Edit! Generated by:
# kickstarter.py
#
lang en_US.UTF-8
keyboard us
timezone --utc UTC
part /boot --size 200 --ondisk sda --fstype=vfat
part / --size 3500 --ondisk sda --fstype=ext4
user --name nemo --groups audio,video --password nemo
rootpw root
repo --name=locusf-rpi2 --baseurl=http://repo.merproject.org/obs/home:/locusf:/branches:/nemo:/devel:/hw:/brcm:/bcm2835:/rpi/sailfishos_1.1.9.28_latest/
repo --name=jolla --baseurl=http://releases.jolla.com/releases/1.1.9.28/jolla/armv7hl/
repo --name=hotfixes --baseurl=http://releases.jolla.com/releases/1.1.9.28/hotfixes/armv7hl/
repo --name=apps --baseurl=http://releases.jolla.com/jolla-apps/1.1.9.28/armv7hl/
%packages
@jolla-ui-wayland
@jolla-sailfish-applications
#@jolla-hw-adaptation-rpi
gfx-rpi
gfx-rpi-libEGL
gfx-rpi-libGLESv2
rpi-configs
qt5-qtplatformplugin-rpi
qt5-qtwayland
-qt5-qtwayland-wayland_egl
-mesa-llvmpipe-libwayland-egl
#=================================================
jolla-common-configurations
libsailfishkeyprovider-data-jolla
libsailfishapp
#pulseaudio-policy-enforcement
jolla-developer-mode
fingerterm
#=== MULTIMEDIA =================================
gst-av
gst-plugins-bad-free
gstreamer0.10-ffmpeg
alsa-utils
#================================================
#===== tools ===========================
nano
zypper
#==== END tools ==============================
%end
%pre
touch $INSTALL_ROOT/.bootstrap
%end
%post
rm $INSTALL_ROOT/.bootstrap
mv /usr/boot/* /boot/
mv /usr/lib/modules /lib/
export SSU_RELEASE_TYPE=release
### begin 01_arch-hack
# Without this line the rpm does not get the architecture right.
echo -n "armv7hl-meego-linux" > /etc/rpm/platform
# Also libzypp has problems in autodetecting the architecture so we force tha as well.
# https://bugs.meego.com/show_bug.cgi?id=11484
echo "arch = armv7hl" >> /etc/zypp/zypp.conf
### end 01_arch-hack
### begin 01_rpm-rebuilddb
# Rebuild db using target's rpm
echo -n "Rebuilding db using target rpm.."
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
echo "done"
### end 01_rpm-rebuilddb
### begin 50_oneshot
# exit boostrap mode
rm -f /.bootstrap
# export some important variables until there's a better solution
export LANG=en_US.UTF-8
export LC_COLLATE=en_US.UTF-8
export GSETTINGS_BACKEND=gconf
# run the oneshot triggers for root and first user uid
UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
if [ -x /usr/bin/oneshot ]; then
su -c "/usr/bin/oneshot --mic"
su -c "/usr/bin/oneshot --mic" $DEVICEUSER
fi
### end 50_oneshot
### begin 60_ssu
if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
[ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
[ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
ssu mode 2
else
ssu release release
ssu mode 4
fi
### end 60_ssu
### begin 70_sdk-domain
ssu domain sailfish
%end
%post --nochroot
if [ -n "$IMG_NAME" ]; then
echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
fi
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment