Advertisement
Guest User

Untitled

a guest
Oct 19th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. # DisplayName: Jolla ace/@ARCH@ (release) 1
  2. # KickstartType: release
  3. # SuggestedImageType: fs
  4. # SuggestedArchitecture: armv7hl
  5.  
  6. user --name nemo --groups audio,video --password nemo
  7. timezone --utc UTC
  8. keyboard us
  9. lang en_US.UTF-8
  10.  
  11. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/part/default
  12. part / --size 500 --ondisk sda --fstype=ext4
  13.  
  14. ## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/bootloader
  15.  
  16. repo --name=adaptation0-ace-@RELEASE@ --baseurl=file:///home/piggz/mer//android/droid/droid-local-repo/ace
  17. repo --name=apps-@RELEASE@ --baseurl=https://releases.jolla.com/jolla-apps/@RELEASE@/@ARCH@/
  18. repo --name=hotfixes-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/hotfixes/@ARCH@/
  19. repo --name=jolla-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/jolla/@ARCH@/
  20.  
  21. #Openrepos
  22. repo --name=openrepos-basil --baseurl=http://sailfish.openrepos.net/basil/personal/main
  23. repo --name=openrepos-sailfish_lib --baseurl=http://sailfish.openrepos.net/sailfish_lib/personal/main
  24. repo --name=openrepos-piggz --baseurl=http://sailfish.openrepos.net/piggz/personal/main
  25.  
  26. %packages
  27. @Jolla Configuration ace
  28. #@jolla-hw-adaptation-ace
  29. sd-utils
  30. qt5-qtdeclarative-qmlscene
  31. qt5-qtdeclarative-import-positioning
  32. jolla-alarm-ui
  33. jolla-calendar
  34. jolla-calculator
  35. jolla-email
  36. jolla-mediaplayer
  37. jolla-fileman
  38. jolla-notes
  39. jolla-clock
  40. jolla-devicelock-plugin-encsfa
  41. @jolla-store-applications
  42. dbus-x11
  43. qt5-qtsvg-plugin-imageformat-svg
  44. qt5-qtdeclarative-import-sensors
  45. -jolla-devicelock-plugin-encpartition
  46. jolla-devicelock-plugin-encsfa
  47. usb-moded
  48. -usb-moded-developer-mode-android
  49. -usb-moded-developer-mode
  50. #From openrepos
  51. harbour-warehouse
  52. gst-plugins-ugly
  53. gstreamer0.10-ffmpeg
  54. gstreamer0.10-ffmpeg-extra
  55. gst-av
  56. galaxy-attack-hd
  57. %end
  58.  
  59. %attachment
  60. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/attachment/ace
  61. /boot/hybris-boot.img
  62. /boot/hybris-updater-script
  63. /boot/hybris-updater-unpack.sh
  64. /boot/update-binary
  65. /etc/sailfish-release
  66.  
  67. %end
  68.  
  69. %pre
  70. export SSU_RELEASE_TYPE=release
  71. ### begin 01_init
  72. touch $INSTALL_ROOT/.bootstrap
  73. ### end 01_init
  74. %end
  75.  
  76. %post
  77. export SSU_RELEASE_TYPE=release
  78. ### begin 01_arch-hack
  79. if [ "@ARCH@" == armv7hl ] || [ "@ARCH@" == armv7tnhl ]; then
  80. # Without this line the rpm does not get the architecture right.
  81. echo -n "@ARCH@-meego-linux" > /etc/rpm/platform
  82.  
  83. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  84. # https://bugs.meego.com/show_bug.cgi?id=11484
  85. echo "arch = @ARCH@" >> /etc/zypp/zypp.conf
  86. fi
  87. ### end 01_arch-hack
  88. ### begin 01_rpm-rebuilddb
  89. # Rebuild db using target's rpm
  90. echo -n "Rebuilding db using target rpm.."
  91. rm -f /var/lib/rpm/__db*
  92. rpm --rebuilddb
  93. echo "done"
  94. ### end 01_rpm-rebuilddb
  95. ### begin 50_oneshot
  96. # exit boostrap mode
  97. rm -f /.bootstrap
  98.  
  99. # export some important variables until there's a better solution
  100. export LANG=en_US.UTF-8
  101. export LC_COLLATE=en_US.UTF-8
  102. export GSETTINGS_BACKEND=gconf
  103.  
  104. # run the oneshot triggers for root and first user uid
  105. UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
  106. DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
  107.  
  108. if [ -x /usr/bin/oneshot ]; then
  109. su -c "/usr/bin/oneshot --mic"
  110. su -c "/usr/bin/oneshot --mic" $DEVICEUSER
  111. fi
  112. ### end 50_oneshot
  113. ### begin 60_ssu
  114. if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
  115. [ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
  116. [ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
  117. ssu mode 2
  118. else
  119. [ -n "@RELEASE@" ] && ssu release @RELEASE@
  120. ssu mode 4
  121. fi
  122. ### end 60_ssu
  123. ### begin 70_sdk-domain
  124.  
  125. export SSU_DOMAIN=@RNDFLAVOUR@
  126.  
  127. if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
  128. then
  129. ssu domain sailfish
  130. fi
  131. ### end 70_sdk-domain
  132. %end
  133.  
  134. %post --nochroot
  135. export SSU_RELEASE_TYPE=release
  136. ### begin 01_release
  137. if [ -n "$IMG_NAME" ]; then
  138. echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
  139. fi
  140. ### end 01_release
  141. %end
  142.  
  143. %pack
  144. export SSU_RELEASE_TYPE=release
  145. ### begin package-droid-updater
  146. pushd $IMG_OUT_DIR
  147.  
  148. DEVICE=ace
  149.  
  150. VERSION_FILE=./sailfish-release
  151. source $VERSION_FILE
  152.  
  153. # Locate rootfs tar.bz2 archive.
  154. for filename in *.tar.bz2; do
  155. GEN_IMG_BASE=$(basename $filename .tar.bz2)
  156. done
  157.  
  158. if [ ! -e "$GEN_IMG_BASE.tar.bz2" ]; then
  159. echo "No rootfs archive found, exiting ..."
  160. exit 1
  161. fi
  162.  
  163. IMG_SIZE=$(du -h $GEN_IMG_BASE.tar.bz2 | cut -f1)
  164.  
  165. # Output filenames
  166. DST_IMG_BASE=$ID-$DEVICE-$SAILFISH_FLAVOUR-$VERSION_ID@EXTRA_NAME@
  167. DST_IMG=$DST_IMG_BASE.tar.bz2
  168.  
  169. # Copy boot image, updater scripts and updater binary into updater .zip tree.
  170. mkdir -p updater/META-INF/com/google/android
  171.  
  172. mv update-binary updater/META-INF/com/google/android/update-binary
  173. mv hybris-updater-script updater/META-INF/com/google/android/updater-script
  174. mv hybris-updater-unpack.sh updater/updater-unpack.sh
  175. mv hybris-boot.img updater/hybris-boot.img
  176.  
  177. # Temporarily move the rootfs into the updater directory
  178. mv $GEN_IMG_BASE.tar.bz2 updater/$DST_IMG
  179.  
  180. # Update updater-script with image details.
  181. sed -i -e "s %VERSION% $VERSION_ID g" -e "s %IMAGE_FILE% $DST_IMG g" -e "s %IMAGE_SIZE% $IMG_SIZE g" updater/META-INF/com/google/android/updater-script
  182.  
  183. # pack updater .zip
  184. pushd updater
  185. zip -r ../$DST_IMG_BASE.zip META-INF/com/google/android/update-binary META-INF/com/google/android/updater-script updater-unpack.sh hybris-boot.img $DST_IMG_BASE.ks $DST_IMG
  186. popd # updater
  187.  
  188. # Move the rootfs back out of the updater directory
  189. mv updater/$DST_IMG $GEN_IMG_BASE.tar.bz2
  190.  
  191. # Clean up updater .zip working directory.
  192. rm -rf updater
  193.  
  194. popd # $IMG_OUT_DIR
  195. ### end package-droid-updater
  196. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement