Created
October 12, 2015 07:38
-
-
Save locusf/7fbc28ec37013a900c80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*-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 | |
gst-av | |
gst-plugins-bad-free | |
alsa-utils | |
nano | |
zypper | |
patch | |
%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 | |
export PATH=/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
# 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 | |
ssu re 1.1.9.28 | |
which chpasswd | |
which patch | |
echo root:root|/usr/sbin/chpasswd | |
/usr/bin/patch -p1 < /usr/share/patches-rpi/main.qml.patch | |
/usr/bin/patch -p1 < /usr/share/patches-rpi/Page.qml.patch | |
%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