Advertisement
Guest User

osetr repo & harbour-storeman not picked-up by mic

a guest
Nov 4th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.24 KB | None | 0 0
  1. # DisplayName: Jolla idol3/@ARCH@ (release) 0.0.19
  2. # KickstartType: release
  3. # DeviceModel: idol3
  4. # DeviceVariant: idol3
  5. # SuggestedImageType: fs
  6. # SuggestedArchitecture: armv7hl
  7.  
  8. user --name nemo --groups audio,input,video --password nemo
  9. timezone --utc UTC
  10. lang en_US.UTF-8
  11. keyboard us
  12.  
  13. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/part/default
  14. part / --size 500 --ondisk sda --fstype=ext4
  15.  
  16. ## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/bootloader
  17.  
  18. repo --name=adaptation-community-idol3-@RELEASE@ --baseurl=http://repo.merproject.org/obs/nemo:/testing:/hw:/TCL:/idol3/sailfishos_@RELEASE@/
  19. repo --name=adaptation-community-common-idol3-@RELEASE@ --baseurl=http://repo.merproject.org/obs/nemo:/testing:/hw:/common/sailfishos_@RELEASE@/
  20. repo --name=apps-@RELEASE@ --baseurl=https://releases.jolla.com/jolla-apps/@RELEASE@/@ARCH@/
  21. repo --name=hotfixes-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/hotfixes/@ARCH@/
  22. repo --name=jolla-@RELEASE@ --baseurl=https://releases.jolla.com/releases/@RELEASE@/jolla/@ARCH@/
  23.  
  24. repo --name=openrepos-osetr --baseurl=https://sailfish.openrepos.net/osetr/personal/main/
  25.  
  26. %packages
  27. @Jolla Configuration idol3
  28. less
  29. mce-tools
  30. harbour-messwerk
  31. harbour-storeman
  32. %end
  33.  
  34. %attachment
  35. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/attachment/idol3
  36. /boot/hybris-boot.img
  37. /boot/hybris-updater-script
  38. /boot/hybris-updater-unpack.sh
  39. /boot/update-binary
  40.  
  41. %end
  42.  
  43. %pre
  44. export SSU_RELEASE_TYPE=release
  45. ### begin 01_init
  46. touch $INSTALL_ROOT/.bootstrap
  47. ### end 01_init
  48. %end
  49.  
  50. %post
  51. export SSU_RELEASE_TYPE=release
  52. ### begin 01_arch-hack
  53. if [ "@ARCH@" == armv7hl ] || [ "@ARCH@" == armv7tnhl ]; then
  54. # Without this line the rpm does not get the architecture right.
  55. echo -n "@ARCH@-meego-linux" > /etc/rpm/platform
  56.  
  57. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  58. # https://bugs.meego.com/show_bug.cgi?id=11484
  59. echo "arch = @ARCH@" >> /etc/zypp/zypp.conf
  60. fi
  61. ### end 01_arch-hack
  62. ### begin 01_rpm-rebuilddb
  63. # Rebuild db using target's rpm
  64. echo -n "Rebuilding db using target rpm.."
  65. rm -f /var/lib/rpm/__db*
  66. rpm --rebuilddb
  67. echo "done"
  68. ### end 01_rpm-rebuilddb
  69. ### begin 50_oneshot
  70. # exit boostrap mode
  71. rm -f /.bootstrap
  72.  
  73. # export some important variables until there's a better solution
  74. export LANG=en_US.UTF-8
  75. export LC_COLLATE=en_US.UTF-8
  76. export GSETTINGS_BACKEND=gconf
  77.  
  78. # run the oneshot triggers for root and first user uid
  79. UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
  80. DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
  81.  
  82. if [ -x /usr/bin/oneshot ]; then
  83. su -c "/usr/bin/oneshot --mic"
  84. su -c "/usr/bin/oneshot --mic" $DEVICEUSER
  85. fi
  86. ### end 50_oneshot
  87. ### begin 60_ssu
  88. if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
  89. [ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
  90. [ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
  91. # RELEASE is reused in RND setups with parallel release structures
  92. # this makes sure that an image created from such a structure updates from there
  93. [ -n "@RELEASE@" ] && ssu set update-version @RELEASE@
  94. ssu mode 2
  95. else
  96. [ -n "@RELEASE@" ] && ssu release @RELEASE@
  97. ssu mode 4
  98. fi
  99. ### end 60_ssu
  100. %end
  101.  
  102. %post --nochroot
  103. export SSU_RELEASE_TYPE=release
  104. ### begin 50_os-release
  105. (
  106. CUSTOMERS=$(find $INSTALL_ROOT/usr/share/ssu/features.d -name 'customer-*.ini' \
  107. |xargs --no-run-if-empty sed -n 's/^name[[:space:]]*=[[:space:]]*//p')
  108.  
  109. cat $INSTALL_ROOT/etc/os-release
  110. echo "SAILFISH_CUSTOMER=\"${CUSTOMERS//$'\n'/ }\""
  111. ) > $IMG_OUT_DIR/os-release
  112. ### end 50_os-release
  113. %end
  114.  
  115. %pack
  116. export SSU_RELEASE_TYPE=release
  117. ### begin hybris
  118. pushd $IMG_OUT_DIR
  119.  
  120. DEVICE=idol3
  121.  
  122. VERSION_FILE=./os-release
  123. source $VERSION_FILE
  124.  
  125. # Locate rootfs tar.bz2 archive.
  126. for filename in *.tar.bz2; do
  127. GEN_IMG_BASE=$(basename $filename .tar.bz2)
  128. done
  129.  
  130. if [ ! -e "$GEN_IMG_BASE.tar.bz2" ]; then
  131. echo "No rootfs archive found, exiting ..."
  132. exit 1
  133. fi
  134.  
  135. IMG_SIZE=$(du -h $GEN_IMG_BASE.tar.bz2 | cut -f1)
  136.  
  137. # Output filenames
  138. DST_IMG_BASE=$ID-$DEVICE-$SAILFISH_FLAVOUR-$VERSION_ID@EXTRA_NAME@
  139. DST_IMG=$DST_IMG_BASE.tar.bz2
  140.  
  141. # Copy boot image, updater scripts and updater binary into updater .zip tree.
  142. mkdir -p updater/META-INF/com/google/android
  143.  
  144. mv update-binary updater/META-INF/com/google/android/update-binary
  145. mv hybris-updater-script updater/META-INF/com/google/android/updater-script
  146. mv hybris-updater-unpack.sh updater/updater-unpack.sh
  147. mv hybris-boot.img updater/hybris-boot.img
  148.  
  149. # Temporarily move the rootfs into the updater directory
  150. mv $GEN_IMG_BASE.tar.bz2 updater/$DST_IMG
  151.  
  152. # Update updater-script with image details.
  153. 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
  154.  
  155. # pack updater .zip
  156. pushd updater
  157. 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
  158. popd # updater
  159.  
  160. # Move the rootfs back out of the updater directory
  161. mv updater/$DST_IMG $GEN_IMG_BASE.tar.bz2
  162.  
  163. # Clean up updater .zip working directory.
  164. rm -rf updater
  165.  
  166. popd # $IMG_OUT_DIR
  167. ### end hybris
  168. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement