Newer Older
Nokius's avatar
Nokius committed
1 2 3 4 5 6 7 8 9 10 11 12
# DisplayName: Jolla dont_be_evil/@[email protected] (release) 1
# KickstartType: release
# SuggestedImageType: fs
# SuggestedArchitecture: armv7hl

timezone --utc UTC

### Commands from /tmp/sandbox/usr/share/ssu/kickstart/part/default
part / --size 500 --ondisk sda --fstype=ext4

## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/bootloader

13
repo [email protected]@ --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/pine:/dontbeevil/[email protected]@/
14
repo [email protected]@ --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/pine:/dontbeevil:/pinephone/[email protected]@/
15
repo [email protected]@ --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/common/[email protected]@/
16
repo [email protected]@ --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/native-common/[email protected]@/
Nokius's avatar
Nokius committed
17 18 19
repo [email protected]@ --baseurl=https://releases.jolla.com/jolla-apps/@[email protected]/@[email protected]/
repo [email protected]@ --baseurl=https://releases.jolla.com/releases/@[email protected]/hotfixes/@[email protected]/
repo [email protected]@ --baseurl=https://releases.jolla.com/releases/@[email protected]/jolla/@[email protected]/
20 21
repo --name=openrepos-llelectronics --baseurl=http://sailfish.openrepos.net/llelectronics/personal/main
repo --name=openrepos-llelectronics_dev --baseurl=http://sailfish.openrepos.net/llelectronics_dev/personal/main
Nokius's avatar
Nokius committed
22 23

%packages
24
#Use meta packages here
25 26
jolla-configuration-pinephone
jolla-hw-adaptation-pinephone 
27

28
# kernel
29
droid-hal-kernel-pine
30
droid-hal-kernel-pine-modules
31

Nokius's avatar
Nokius committed
32 33
# breaks build for now
#droid-config-dontbeevil-pulseaudio-settings
34

Nokius's avatar
Nokius committed
35
#debug tools
36 37
vi
strace
Nokius's avatar
Nokius committed
38
gdb
Nokius's avatar
Nokius committed
39 40
#zypper
#augeas-lib
41
mce-tools
42 43 44 45 46 47 48 49 50 51 52 53 54

#Sailfish porter tools
jolla-developer-mode
sailfishsilica-qt5-demos
busybox-static
net-tools
openssh-clients
openssh-server
vim-enhanced
zypper
strace
jolla-rnd-device

55 56
#Useful store apps
harbour-webcat
Nokius's avatar
Nokius committed
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
%end

%pre
export SSU_RELEASE_TYPE=release
### begin 01_init
touch $INSTALL_ROOT/.bootstrap
### end 01_init
%end

%post
### later we need to move here the kernel and modules

export SSU_RELEASE_TYPE=release
### begin 01_arch-hack
if [ "@[email protected]" == armv7hl ] || [ "@[email protected]" == armv7tnhl ]; then
    # Without this line the rpm does not get the architecture right.
    echo -n "@[email protected]" > /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 = @[email protected]" >> /etc/zypp/zypp.conf
fi
### 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
piggz's avatar
piggz committed
101
   /usr/bin/oneshot --mic
Nokius's avatar
Nokius committed
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
   su -c "/usr/bin/oneshot --mic" $DEVICEUSER
fi
### end 50_oneshot
### begin 60_ssu
if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
    [ -n "@[email protected]" ] && ssu release -r @[email protected]
    [ -n "@[email protected]" ] && ssu flavour @[email protected]
    # RELEASE is reused in RND setups with parallel release structures
    # this makes sure that an image created from such a structure updates from there
    [ -n "@[email protected]" ] && ssu set update-version @[email protected]
    ssu mode 2
else
    [ -n "@[email protected]" ] && ssu release @[email protected]
    ssu mode 4
fi
### end 60_ssu
### begin 70_sdk-domain

export [email protected]@

if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
then
    ssu domain sailfish
fi
### end 70_sdk-domain
127

piggz's avatar
piggz committed
128
## Manually install storeman
129 130
zypper -n --gpg-auto-import-keys ar http://sailfish.openrepos.net/osetr/personal/main openrepos-osetr
zypper -n --gpg-auto-import-keys --no-gpg-checks refresh openrepos-osetr
131
zypper -n --gpg-auto-import-keys --no-gpg-checks install harbour-storeman-0.1.8-1
Nokius's avatar
Nokius committed
132 133 134 135 136 137 138 139 140 141 142 143
%end

%post --nochroot
export SSU_RELEASE_TYPE=release
### begin 01_release
if [ -n "$IMG_NAME" ]; then
    echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
fi
### end 01_release

%end