Advertisement
Guest User

Untitled

a guest
May 31st, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. # DisplayName: Jolla N9/@ARCH@ (release) 0.80
  2. # KickstartType: release
  3. # SuggestedImageType: fs
  4. # SuggestedArchitecture: armv7hl
  5.  
  6. lang en_US.UTF-8
  7. timezone --utc UTC
  8. user --name nemo --groups audio,video --password nemo
  9. keyboard us
  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. ## [add repos here]
  17.  
  18.  
  19. %packages
  20. @Jolla Configuration N9
  21. %end
  22.  
  23. %attachment
  24. ## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/attachment
  25. %end
  26.  
  27. %pre
  28. export SSU_RELEASE_TYPE=release
  29. ### begin 01_init
  30. touch $INSTALL_ROOT/.bootstrap
  31. ### end 01_init
  32. %end
  33.  
  34. %post
  35. export SSU_RELEASE_TYPE=release
  36. ### begin 01_arch-hack
  37. if [ "@ARCH@" == armv7hl ] || [ "@ARCH@" == armv7tnhl ]; then
  38. # Without this line the rpm does not get the architecture right.
  39. echo -n "@ARCH@-meego-linux" > /etc/rpm/platform
  40.  
  41. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  42. # https://bugs.meego.com/show_bug.cgi?id=11484
  43. echo "arch = @ARCH@" >> /etc/zypp/zypp.conf
  44. fi
  45. ### end 01_arch-hack
  46. ### begin 01_rpm-rebuilddb
  47. # Rebuild db using target's rpm
  48. echo -n "Rebuilding db using target rpm.."
  49. rm -f /var/lib/rpm/__db*
  50. rpm --rebuilddb
  51. echo "done"
  52. ### end 01_rpm-rebuilddb
  53. ### begin 50_oneshot
  54. # exit boostrap mode
  55. rm -f /.bootstrap
  56.  
  57. # export some important variables until there's a better solution
  58. export LANG=en_US.UTF-8
  59. export LC_COLLATE=en_US.UTF-8
  60. export GSETTINGS_BACKEND=gconf
  61.  
  62. # run the oneshot triggers for root and first user uid
  63. UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
  64. DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
  65.  
  66. if [ -x /usr/bin/oneshot ]; then
  67. su -c "/usr/bin/oneshot --mic"
  68. su -c "/usr/bin/oneshot --mic" $DEVICEUSER
  69. fi
  70. ### end 50_oneshot
  71. ### begin 60_ssu
  72. if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
  73. [ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
  74. [ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
  75. ssu mode 2
  76. else
  77. [ -n "@RELEASE@" ] && ssu release @RELEASE@
  78. ssu mode 4
  79. fi
  80. ### end 60_ssu
  81. ### begin 70_sdk-domain
  82.  
  83. export SSU_DOMAIN=@RNDFLAVOUR@
  84.  
  85. if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
  86. then
  87. ssu domain sailfish
  88. fi
  89. ### end 70_sdk-domain
  90. %end
  91.  
  92. %post --nochroot
  93. export SSU_RELEASE_TYPE=release
  94. ### begin 01_release
  95. if [ -n "$IMG_NAME" ]; then
  96. echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
  97. fi
  98. ### end 01_release
  99. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement