Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DisplayName: Jolla bullhead/aarch64 (release) 1
- # KickstartType: release
- # SuggestedImageType: fs
- # SuggestedArchitecture: aarch64
- keyboard us
- lang en_US.UTF-8
- user --name nemo --groups audio,video --password nemo
- 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
- repo --name=adaptation0-bullhead-2.0.1.11 --baseurl=file:///home/mgh01/mer/android/droid/droid-local-repo/bullhead
- repo --name=strace --baseurl=http://repo.merproject.org/obs/home:/mgrover:/branches:/mer-tools:/devel/aarch64/
- repo --name=mer-core --baseurl=http://repo.merproject.org/obs/mer-core:/aarch64:/devel:/fixup/Core_aarch64/
- %packages
- automake
- basesystem
- bash
- busybox-static
- binutils
- bluez
- boardname
- bsdtar
- build
- cmake
- connman
- coreutils
- crda
- deltarpm
- e2fsprogs
- file
- filesystem
- fontpackages-filesystem
- gcc
- gcc-c++
- gdb
- git
- glib2
- glibc-devel
- iproute
- iputils
- kbd
- libtool
- lsb-release
- make
- meego-rpm-config
- #mer-kickstarter
- mer-release
- #mic
- mpc
- net-tools
- ngfd
- nss
- ofono
- oneshot
- openssh-clients
- openssh-server
- #osc
- pam
- passwd
- patch
- perl
- pkgconfig
- prelink
- procps
- psmisc
- qt5-qttools-kmap2qmap
- readline
- repomd-pattern-builder
- rootfiles
- rpm
- rpm-build
- setup
- shadow-utils
- shared-mime-info
- ssu
- ssu-ks
- strace
- time
- usbutils
- util-linux
- vim
- iw
- wayland
- wayland-devel
- wpa_supplicant
- xdg-user-dirs
- zlib
- zlib-devel
- zypper
- libhybris*
- droid-config-bullhead
- droid-config-bullhead-patterns
- droid-config-bullhead-preinit-plugin
- droid-config-bullhead-sailfish
- droid-hal-bullhead
- droid-hal-bullhead-detritus
- droid-hal-bullhead-devel
- droid-hal-bullhead-img-boot
- droid-hal-bullhead-img-recovery
- droid-hal-bullhead-kernel
- droid-hal-bullhead-kernel-modules
- droid-hal-bullhead-tools
- droid-hal-version-bullhead
- droid-hal-version-bullhead-doc
- %end
- %attachment
- ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/attachment/bullhead
- /boot/hybris-boot.img
- /boot/hybris-updater-script
- /boot/hybris-updater-unpack.sh
- /boot/update-binary
- %end
- %pre
- export SSU_RELEASE_TYPE=release
- ### begin 01_init
- touch $INSTALL_ROOT/.bootstrap
- ### end 01_init
- %end
- %post
- export SSU_RELEASE_TYPE=release
- ### begin 01_arch-hack
- if [ "aarch64" == armv7hl ] || [ "aarch64" == armv7tnhl ]; then
- # Without this line the rpm does not get the architecture right.
- echo -n "aarch64-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 = aarch64" >> /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
- 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@
- # 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 "2.0.1.11" ] && ssu set update-version 2.0.1.11
- ssu mode 2
- else
- [ -n "2.0.1.11" ] && ssu release 2.0.1.11
- ssu mode 4
- fi
- ### end 60_ssu
- ### begin 70_sdk-domain
- export SSU_DOMAIN=@RNDFLAVOUR@
- if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
- then
- ssu domain sailfish
- fi
- ### end 70_sdk-domain
- %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
- ### begin bullhead
- cp $INSTALL_ROOT/etc/sailfish-release $IMG_OUT_DIR
- ### end bullhead
- %end
- %pack
- export SSU_RELEASE_TYPE=release
- ### begin hybris
- pushd $IMG_OUT_DIR
- DEVICE=bullhead
- VERSION_FILE=./sailfish-release
- source $VERSION_FILE
- # Locate rootfs tar.bz2 archive.
- for filename in *.tar.bz2; do
- GEN_IMG_BASE=$(basename $filename .tar.bz2)
- done
- if [ ! -e "$GEN_IMG_BASE.tar.bz2" ]; then
- echo "No rootfs archive found, exiting ..."
- exit 1
- fi
- IMG_SIZE=$(du -h $GEN_IMG_BASE.tar.bz2 | cut -f1)
- # Output filenames
- DST_IMG_BASE=$ID-$DEVICE-$SAILFISH_FLAVOUR-$VERSION_ID-ghosalmartin
- DST_IMG=$DST_IMG_BASE.tar.bz2
- # Copy boot image, updater scripts and updater binary into updater .zip tree.
- mkdir -p updater/META-INF/com/google/android
- mv update-binary updater/META-INF/com/google/android/update-binary
- mv hybris-updater-script updater/META-INF/com/google/android/updater-script
- mv hybris-updater-unpack.sh updater/updater-unpack.sh
- mv hybris-boot.img updater/hybris-boot.img
- # Temporarily move the rootfs into the updater directory
- mv $GEN_IMG_BASE.tar.bz2 updater/$DST_IMG
- # Update updater-script with image details.
- 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
- # pack updater .zip
- pushd updater
- 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
- popd # updater
- # Move the rootfs back out of the updater directory
- mv updater/$DST_IMG $GEN_IMG_BASE.tar.bz2
- # Clean up updater .zip working directory.
- rm -rf updater
- popd # $IMG_OUT_DIR
- ### end hybris
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement