Define new ARM images.
Define new X11 images and repos
Change-Id: Id57f0f32eb21af13e5b8f8c8e9f8094ce369913a
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Bug-Tizen: TC-1234
- Name: common-emulator-wayland_i586
Url: http://download.tizen.org/snapshots/tizen/common/@BUILD_ID@/repos/emulator32-wayland/packages/
Options: --ssl_verify=no
+
+ - Name: common-x11_i586
+ Url: http://download.tizen.org/snapshots/tizen/common/@BUILD_ID@/repos/ia32-x11/packages/
+ Options: --ssl_verify=no
+
+ - Name: common-x11_x86_64
+ Url: http://download.tizen.org/snapshots/tizen/common/@BUILD_ID@/repos/x86_64-x11/packages/
+ Options: --ssl_verify=no
+
+ - Name: common-x11_armv7l
+ Url: http://download.tizen.org/snapshots/tizen/common/@BUILD_ID@/repos/arm-x11/packages/
+ Options: --ssl_verify=no
- Name: ia32-wayland
Images:
- common-installer-mbr-i586.yaml
- - common-minimal-mbr-i586.yaml
- - common-qa-unsafe-minimal-mbr-i586.yaml
- - common-qa-unsafe-wayland-mbr-i586.yaml
- common-wayland-mbr-i586.yaml
+ - common-qa-unsafe-wayland-mbr-i586.yaml
+
+ - Name: emulator32-wayland
+ Images:
+ - common-emulator-wayland-mbr-i586.yaml
+ - common-emulator-qa-unsafe-wayland-mbr-i586.yaml
+
+ - Name: ia32-x11
+ Images:
+ - common-x11-mbr-i586.yaml
+ - common-qa-unsafe-x11-mbr-i586.yaml
- Name: x86_64-wayland
Images:
- - common-minimal-mbr-x86_64.yaml
- - common-qa-unsafe-minimal-mbr-x86_64.yaml
- - common-qa-unsafe-wayland-mbr-x86_64.yaml
- common-wayland-mbr-x86_64.yaml
+ - common-qa-unsafe-wayland-mbr-x86_64.yaml
- - Name: arm-wayland
+ - Name: x86_64-x11
Images:
- - common-wayland-mbr-armv7l.yaml
+ - common-x11-mbr-x86_64.yaml
+ - common-qa-unsafe-x11-mbr-x86_64.yaml
- - Name: arm64-wayland
- Images: []
-
- - Name: emulator32-wayland
+ - Name: arm-wayland
Images:
- - common-emulator-qa-unsafe-wayland-mbr-i586.yaml
- - common-emulator-wayland-mbr-i586.yaml
+ - common-wayland-2parts-armv7l.yaml
+ - common-qa-unsafe-wayland-2parts-armv7l.yaml
- Name: arm-x11
+ Images:
+ - common-x11-2parts-armv7l.yaml
+ - common-qa-unsafe-x11-2parts-armv7l.yaml
+
+ - Name: arm64-wayland
Images: []
+
SaveRepos: False
UserGroups: "audio,video"
Groups:
+ - Generic Base
- Common Base
- - Common Console Tools
+ - Generic Console Tools
+ - Generic Packaging
- Common Packaging
- - Common Adaptation
+ - Generic Adaptation
PostScripts:
+ - generic-base
- common-base
- - common-console-tools
+ - generic-console-tools
+ - generic-packaging
- common-packaging
- - common-adaptation
+ - generic-adaptation
NoChrootScripts:
- buildname
Part: common-mbr
UserGroups: "audio,video"
Groups:
+ - Generic Wayland
- Common Wayland
+ - Generic Middleware
- Common Middleware
- - Common Applications
- - Common Bluetooth
- - Common Multimedia
+ - Generic Applications
+ - Generic Bluetooth
+ - Generic Multimedia
+ - Generic Desktop Applications
- Common Desktop Applications
+ - Generic Crosswalk
- Common Crosswalk
+ - Generic Qt5
- Common Qt5
PostScripts:
+ - generic-wayland
- common-wayland
+ - generic-middleware
- common-middleware
- - common-applications
- - common-bluetooth
- - common-multimedia
+ - generic-applications
+ - generic-bluetooth
+ - generic-multimedia
+ - generic-desktop-applications
- common-desktop-applications
+ - generic-crosswalk
- common-crosswalk
+ - generic-qt5
+ - common-qt5
+ Repos: []
+
+X11:
+ Part: common-mbr
+ UserGroups: "audio,video"
+ Groups:
+ - Generic X11
+ - Generic Middleware
+ - Common Middleware
+ - Generic Applications
+ - Generic Bluetooth
+ - Generic Multimedia
+ - Generic Desktop Applications
+ - Common Desktop Applications
+ - Generic Crosswalk
+ - Common Crosswalk
+ - Generic Qt5
+ - Common Qt5
+ PostScripts:
+ - generic-x11
+ - generic-middleware
+ - common-middleware
+ - generic-applications
+ - generic-bluetooth
+ - generic-multimedia
+ - generic-desktop-applications
+ - common-desktop-applications
+ - generic-crosswalk
+ - common-crosswalk
+ - generic-qt5
- common-qt5
Repos: []
-Name: Common Emulator QA Unsafe Wayland MBR i586
+Name: common-emulator-qa-unsafe-wayland-mbr-i586
Architecture: ia32
Schedule: "*"
Active: True
Part: common-mbr
Mic2Options: -f loop --pack-to=@NAME@.tar.gz
FileName: common-emulator-qa-unsafe-wayland-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-emulator-wayland_i586
Groups:
- - Common Automated QA Tools
+ - Generic Multimedia Intel
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
ExtraPackages:
- sdbd
- system-plugin-emulator
PostScripts:
- - common-autoqa
+ - generic-multimedia-intel
+ - generic-autoqa
+ - generic-qa
+ - common-qa
-Name: Common Emulator Wayland MBR i586
+Name: common-emulator-wayland-mbr-i586
Architecture: ia32
Schedule: "*"
Active: True
Part: common-mbr
Mic2Options: -f loop --pack-to=@NAME@.tar.gz
FileName: common-emulator-wayland-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-emulator-wayland_i586
ExtraPackages:
- sdbd
- system-plugin-emulator
+Groups:
+ - Generic Multimedia Intel
+PostScripts:
+ - generic-multimedia-intel
-Name: Common Installer MBR i586
+Name: common-installer-mbr-i586
Architecture: ia32
Schedule: "*"
Active: True
Platform: Installer
Part: common-mbr
FileName: common-installer-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_i586
ExtraPackages:
--- /dev/null
+Name: common-minimal-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-minimal-2parts-armv7l
+Kernel: kernel-profile-common
+Repos:
+ - common-wayland_armv7l
-Name: Common Minimal MBR i586
+Name: common-minimal-mbr-i586
Architecture: ia32
+Schedule: "*"
Active: True
Platform: Minimal
Part: common-mbr
FileName: common-minimal-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_i586
-Name: Common Minimal MBR x86_64
+Name: common-minimal-mbr-x86_64
Architecture: x86_64
+Schedule: "*"
Active: True
Platform: Minimal
Part: common-mbr
FileName: common-minimal-mbr-x86_64
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_x86_64
--- /dev/null
+Name: common-qa-unsafe-minimal-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-qa-unsafe-minimal-2parts-armv7l
+Kernel: kernel-profile-common
+Repos:
+ - common-wayland_armv7l
+Groups:
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
+PostScripts:
+ - generic-autoqa
+ - generic-qa
+ - common-qa
-Name: Common Minimal MBR i586
+Name: common-qa-unsafe-minimal-mbr-i586
Architecture: ia32
+Schedule: "*"
Active: True
Platform: Minimal
Part: common-mbr
-FileName: common-minimal-mbr-i586
-Kernel: kernel-x86-common
+FileName: common-qa-unsafe-minimal-mbr-i586
+Kernel: kernel-profile-common
Repos:
- common-wayland_i586
Groups:
- - Common Automated QA Tools
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
PostScripts:
- - common-autoqa
+ - generic-autoqa
+ - generic-qa
+ - common-qa
-Name: Common Minimal MBR x86_64
+Name: common-qa-unsafe-minimal-mbr-x86_64
Architecture: x86_64
+Schedule: "*"
Active: True
Platform: Minimal
Part: common-mbr
-FileName: common-minimal-mbr-x86_64
-Kernel: kernel-x86-common
+FileName: common-qa-unsafe-minimal-mbr-x86_64
+Kernel: kernel-profile-common
Repos:
- common-wayland_x86_64
Groups:
- - Common Automated QA Tools
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
PostScripts:
- - common-autoqa
+ - generic-autoqa
+ - generic-qa
+ - common-qa
--- /dev/null
+Name: common-qa-unsafe-wayland-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-qa-unsafe-wayland-2parts-armv7l
+Kernel: kernel-profile-common
+Repos:
+ - common-wayland_armv7l
+Groups:
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
+PostScripts:
+ - generic-autoqa
+ - generic-qa
+ - common-qa
-Name: Common QA Unsafe Wayland MBR i586
+Name: common-qa-unsafe-wayland-mbr-i586
Architecture: ia32
Schedule: "*"
Active: True
Platform: Wayland
Part: common-mbr
FileName: common-qa-unsafe-wayland-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_i586
Groups:
- - Common Automated QA Tools
+ - Generic Multimedia Intel
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
PostScripts:
- - common-autoqa
+ - generic-multimedia-intel
+ - generic-autoqa
+ - generic-qa
+ - common-qa
-Name: Common QA Unsafe Wayland MBR x86_64
+Name: common-qa-unsafe-wayland-mbr-x86_64
Architecture: x86_64
Schedule: "*"
Active: True
Platform: Wayland
Part: common-mbr
FileName: common-qa-unsafe-wayland-mbr-x86_64
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_x86_64
Groups:
- - Common Automated QA Tools
+ - Generic Multimedia Intel
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
PostScripts:
- - common-autoqa
+ - generic-multimedia-intel
+ - generic-autoqa
+ - generic-qa
+ - common-qa
--- /dev/null
+Name: common-qa-unsafe-x11-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-qa-unsafe-x11-2parts-armv7l
+Kernel: kernel-profile-common
+Repos:
+ - common-x11_armv7l
+Groups:
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
+PostScripts:
+ - generic-autoqa
+ - generic-qa
+ - common-qa
--- /dev/null
+Name: common-qa-unsafe-x11-mbr-i586
+Architecture: ia32
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr
+FileName: common-qa-unsafe-x11-mbr-i586
+Kernel: kernel-profile-common
+Repos:
+ - common-x11_i586
+Groups:
+ - Generic X11 Intel
+ - Generic Multimedia Intel
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
+PostScripts:
+ - generic-x11-intel
+ - generic-multimedia-intel
+ - generic-autoqa
+ - generic-qa
+ - common-qa
--- /dev/null
+Name: common-qa-unsafe-x11-mbr-x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr
+FileName: common-qa-unsafe-x11-mbr-x86_64
+Kernel: kernel-profile-common
+Repos:
+ - common-x11_x86_64
+Groups:
+ - Generic X11 Intel
+ - Generic Multimedia Intel
+ - Generic Automated QA Tools
+ - Generic QA Tools
+ - Common QA Tools
+PostScripts:
+ - generic-x11-intel
+ - generic-multimedia-intel
+ - generic-autoqa
+ - generic-qa
+ - common-qa
--- /dev/null
+Name: common-wayland-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-wayland-2parts-armv7l
+Repos:
+ - common-wayland_armv7l
+++ /dev/null
-Name: Common Wayland MBR armv7l
-Architecture: armv7l
-Schedule: "*"
-Active: True
-Platform: Wayland
-Part: common-mbr
-FileName: common-wayland-mbr-armv7l
-Repos:
- - common-wayland_armv7l
-Groups:
- - Common Ref M0
-Name: Common Wayland MBR i586
+Name: common-wayland-mbr-i586
Architecture: ia32
Schedule: "*"
Active: True
Platform: Wayland
Part: common-mbr
FileName: common-wayland-mbr-i586
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_i586
+Groups:
+ - Generic Multimedia Intel
+PostScripts:
+ - generic-multimedia-intel
-Name: Common Wayland MBR x86_64
+Name: common-wayland-mbr-x86_64
Architecture: x86_64
Schedule: "*"
Active: True
Platform: Wayland
Part: common-mbr
FileName: common-wayland-mbr-x86_64
-Kernel: kernel-x86-common
+Kernel: kernel-profile-common
Repos:
- common-wayland_x86_64
+Groups:
+ - Generic Multimedia Intel
+PostScripts:
+ - generic-multimedia-intel
--- /dev/null
+Name: common-x11-2parts-armv7l
+Architecture: armv7l
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr-2parts
+Mic2Options: -f loop --pack-to=@NAME@.tar.gz
+FileName: common-x11-2parts-armv7l
+Repos:
+ - common-x11_armv7l
--- /dev/null
+Name: common-x11-mbr-i586
+Architecture: ia32
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr
+FileName: common-x11-mbr-i586
+Kernel: kernel-profile-common
+Repos:
+ - common-x11_i586
+Groups:
+ - Generic X11 Intel
+ - Generic Multimedia Intel
+PostScripts:
+ - generic-x11-intel
+ - generic-multimedia-intel
--- /dev/null
+Name: common-x11-mbr-x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: X11
+Part: common-mbr
+FileName: common-x11-mbr-x86_64
+Kernel: kernel-profile-common
+Repos:
+ - common-x11_x86_64
+Groups:
+ - Generic X11 Intel
+ - Generic Multimedia Intel
+PostScripts:
+ - generic-x11-intel
+ - generic-multimedia-intel
URL: http://www.tizen.org
Source: %{name}-%{version}.tar.bz2
+Requires: meta-generic
+
%description
Common Meta Data.
Includes patterns and image configurations for Common images.
-part / --fstype="ext4" --ondisk=sda --size=3584 --active --label tizen-common
+part / --fstype="ext4" --size=3584 --ondisk=sda --active --label tizen-common --fsoptions=defaults,noatime
--- /dev/null
+part /boot --fstype="vfat" --size=64 --ondisk=sda --active --label TZBOOT --fsoptions=defaults,noatime
+part / --fstype="ext4" --size=3500 --ondisk=sda --label tizen-common --fsoptions=defaults,noatime
+++ /dev/null
-Summary: Common Adaptation
-Description: Common Adaptation
-Name: common-adaptation
-Packages:
-- linux-firmware
+++ /dev/null
-Summary: Common Applications
-Description: Common Applications
-Name: common-applications
-Packages:
-- ail
-- ca-certificates
-- ca-certificates-mozilla
+++ /dev/null
-Summary: Common Automated QA Tools
-Description: Common Automated QA Tools
-Name: common-autoqa
-Packages:
-- testkit-lite
-- screen
-- which
+++ /dev/null
-Summary: Common Base Micro
-Description: Common Base Micro
-Name: common-base-micro
-Packages:
-- bluez
-- kmod
-- tzdata
-- pam
-- setup
-- filesystem
-- systemd
-- busybox
-- default-ac-domains
-- tizen-release
-- glibc-locale
-- pciutils
-- lrzsz
Summary: Common Base
Description: Common Base
Name: common-base
-Packages:
-- e2fsprogs
-- connman
-- rfkill
-- util-linux
-- kmod-compat
-- kmod
-- tzdata
-- pwdutils
-- pam
-- setup
-- filesystem
-- systemd
-- bash
-- coreutils
-- rpm
-- rpm-security-plugin
-- default-ac-domains
-- tizen-release
-- pam-locale
-- procps
-- psmisc
-- net-tools
-- kbd
-- glibc-locale
-- pciutils
-- default-ac-domains
-- wpa_supplicant
-- prelink
+Packages: []
+
+++ /dev/null
-Summary: Common Bluetooth
-Description: Common Bluetooth
-Name: common-bluetooth
-Packages:
-- bluez
-- bluetooth-frwk-core
-- bluetooth-frwk-service
-- bluetooth-share
-- bluetooth-tools-no-firmware
+++ /dev/null
-Summary: Common Console Tools
-Description: Common Console Tools
-Name: common-console-tools
-Packages:
-- snapper-zypp-plugin
-- tar
-- wget
-- grep
-- gzip
-- openssh
-- rsync
-- parted
-- zip
-- vim
-- unzip
-- less
-- xz
-- nano
-- curl
-- strace
-- diffutils
-- patch
-- findutils
-- wdiff
-- powertop
-- sudo
-- ca-certificates-mozilla
-- iptables
-- tree
Description: Common Crosswalk
Name: common-crosswalk
Packages:
-- crosswalk
-- tizen-extensions-crosswalk
- wrt-widgets
Name: common-desktop-applications
Packages:
- weston-clients
-- emotion
-#- econnman
-#- bluetooth-agent
- org.tizen.calculator
- elementary-tools
- evas-examples
+++ /dev/null
-Summary: Common Development
-Description: Common Development
-Name: common-development
-Packages:
-- zip
-- unzip
-- less
-- gcc
-- glibc-devel
-- libtool
-- gcc-fortran
-- cmake
-- xz
-- tcl
-- gdb
-- gdb-server
-- nano
-- strace
-- yasm
-- make
-- diffutils
-- patch
-- autoconf
-- automake
-- binutils-devel
-- bison
-- flex
-- gcc-c++
-- libstdc++-devel
-- libtool
-- findutils
-- wdiff
-- nasm
-- vim-enhanced
-- powertop
-- pulseaudio-utils
-- gstreamer-utils
-- alsa-utils
-- connman-test
-- pacrunner
-- git-core
-- valgrind
-- lsof
-- attr
-- smack
-- corewatcher
-- iputils
-- iproute2
-- which
Description: Common Middleware
Name: common-middleware
Packages:
-- calendar-service
-- csr-framework
-- elm-misc
-- efl-theme-tizen-hd
-- evolution-data-server
-- libprivilege-control-conf
- model-config-generic
-- notification-service
+- ofono
- neard
- neardal
-- obexd
-- ofono
-- pkgmgr-server
-- sqlite3
+
+++ /dev/null
-Summary: Common Multimedia
-Description: Common Multimedia
-Name: common-multimedia
-Packages:
-- alsa-utils
-- alsa-plugins-pulse
-- pulseaudio
-- pulseaudio-config
-- pulseaudio-locale
-- pulseaudio-module-bluetooth
-- pulseaudio-utils
-- gst-libav
-- gst-plugins-bad
-- gst-plugins-base
-- gst-plugins-good
-- gstreamer
-- gstreamer-vaapi
-- gstreamer-utils
-- libva-intel-driver
-- vaapi-tools
Summary: Common Packaging
Description: Common Packaging
Name: common-packaging
-Packages:
-- gpg2
-- zypper
+Packages: []
+
Description: Common QA Tools
Name: common-qa
Packages:
-- bluez-test
-- connman-test
-- dbus-python
-- dlogutil
-- eet-tools
-- gdb
-- gstreamer-utils
- neard-test
- ofono-test
-- python-xml
-- wget
Summary: Common Qt5
Description: Common Qt5
Name: common-qt5
-Packages:
-- qt5-tools
-- qt5-qtdeclarative-examples
-- qt5-qtwayland
+Packages: []
+++ /dev/null
-Summary: Common Ref M0
-Description: Common Ref M0
-Name: common-ref-m0
-Packages:
-- usb-server
-- usbutils
-- sdbd
-- security-server
Description: Common Wayland
Name: common-wayland
Packages:
-- cantarell-fonts
-- dejavu-fonts
-- weston
- weston-common
- weston-common-config
- weston-clients
- weston-common-tz-launcher
-- mesa
-- xkeyboard-config
-- tizen-branding-default
-- user-session-units
-- desktop-skin
+++ /dev/null
-Summary: Common Webkit
-Description: Common Webkit
-Name: common-webkit
-Packages:
-- wrt-widgets
-- wrt
-- wrt-commons
-- wrt-installer
-- wrt-installer-preinstall-service
-- wrt-plugins-tizen
-- wrt-security
-- webkit2-efl-test
-- web-ui-fw
-- web-ui-fw-demo-tizen-winsets
-- web-ui-fw-theme-default
-- web-ui-fw-theme-tizen-black
-- web-ui-fw-theme-tizen-white
+++ /dev/null
-####################### buildname.nochroot #######################
-if [ -n "$IMG_NAME" ]; then
- echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
- echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/os-release
- echo "$IMG_NAME @BUILD_ID@" >>$INSTALL_ROOT/etc/tizen-snapshot
-fi
+++ /dev/null
-############### common-adaptation.post ################
+++ /dev/null
-############### common-applications.post ################
-
+++ /dev/null
-##################### common-autoqa.post #######################
-
-# generate private/public key for autologin as root
-
-mkdir /root/.ssh
-chown root:root /root/.ssh
-chmod 700 /root/.ssh
-
-# the private key: use the following key on the ssh client side (copied here for reference)
-cat <<EOF >/root/.ssh/id_eat_dsa
------BEGIN DSA PRIVATE KEY-----
-MIIBugIBAAKBgQCE/Ulli3iKf8IwKVacoGCDyZhuabZ+h2oBSd/xlURZa/p3EQVg
-9cFXcyYcjDvKqDu/OZ82l1L33ytZQ1D7Ag/4WOTdUZImQiQakntE6tMLeEtkiXBd
-l4s9QQY8BrHcuoB4fZoLlbs2Jqbz+e2HDlUD+rKmzba/5d70Ze9YmFyDRQIVANH/
-yWdBBWXrFRexL6DIBTwFATM3AoGAcTiEj7Ai18KkajMW/TeiTWA+O3ZeBCFHLPGx
-tSyQKkJ0EUJfTSg9ixn4XfLW61JuY/pkhRDMwCbAto1ymy11hqWKRadpxAmu4czQ
-vWYUSERiS/28xGjKrazWjpM0sSmqZ+Tgezc1FWfCWAfHHpEg0YcttnOvJTB8hj6V
-d84WHKoCgYAw/uP6bE7xxCWUqAtQKob2P/xkXPPWKZ2nAWCxgnYVimGuXc+jThOo
-UBhkIpD+fdMtbRHdLtbzOLohUgaZokgEi58+pjJAJU/tW4Lvzw0nBfReG5OTvfuu
-CLchiFnppSDLi8u4Q4URorg4WFudXrGvUBwvHSGJYNczj7e3XJissAIUTPS6vh9U
-pp1kboovuWeQFduOSOU=
------END DSA PRIVATE KEY-----
-EOF
-
-# the public key
-cat <<EOF >/root/.ssh/id_eat_dsa.pub
-ssh-dss AAAAB3NzaC1kc3MAAACBAIT9SWWLeIp/wjApVpygYIPJmG5ptn6HagFJ3/GVRFlr+ncRBWD1wVdzJhyMO8qoO785nzaXUvffK1lDUPsCD/hY5N1RkiZCJBqSe0Tq0wt4S2SJcF2Xiz1BBjwGsdy6gHh9mguVuzYmpvP57YcOVQP6sqbNtr/l3vRl71iYXINFAAAAFQDR/8lnQQVl6xUXsS+gyAU8BQEzNwAAAIBxOISPsCLXwqRqMxb9N6JNYD47dl4EIUcs8bG1LJAqQnQRQl9NKD2LGfhd8tbrUm5j+mSFEMzAJsC2jXKbLXWGpYpFp2nECa7hzNC9ZhRIRGJL/bzEaMqtrNaOkzSxKapn5OB7NzUVZ8JYB8cekSDRhy22c68lMHyGPpV3zhYcqgAAAIAw/uP6bE7xxCWUqAtQKob2P/xkXPPWKZ2nAWCxgnYVimGuXc+jThOoUBhkIpD+fdMtbRHdLtbzOLohUgaZokgEi58+pjJAJU/tW4Lvzw0nBfReG5OTvfuuCLchiFnppSDLi8u4Q4URorg4WFudXrGvUBwvHSGJYNczj7e3XJissA== meego@testCtrlPC
-EOF
-
-# public key is authorized to login (automatically)
-cat /root/.ssh/id_eat_dsa.pub >>/root/.ssh/authorized_keys
-
-# adjust permissions on ssh config files
-chmod 600 /root/.ssh/*
+++ /dev/null
-############### common-base-micro.post ################
-
-################ common-base.post ##################
+#!/bin/sh
+echo "############### common-base.post ################"
-# setup systemd default target for user session
-cat <<'EOF' >>/lib/systemd/user/default.target
-[Unit]
-Description=User session default target
-EOF
-mkdir -p /lib/systemd/user/default.target.wants
-
-# start dbus session
-ln -s ../dbus.service /lib/systemd/user/default.target.wants/
-
-# Run prelink to speed up dynamic binary/library loading
-/usr/sbin/prelink --all
-
-ln -sf /proc/self/mounts /etc/mtab
-
-# fix TIVI-2291
-sed -ri "s/(^blacklist i8042.*$)/#fix from base-general.post \1/" /etc/modprobe.d/blacklist.conf
-
-# sdx: fix smack labels on /var/log
-chsmack -a '*' /var/log
-
-# Temporary work around for bug in filesystem package resulting in the 'app' user home
-# directory being only readable by root
-chown -R app:app /opt/home/app
-
-# Since weston-launch runs with the "User" label, the app
-# home dir must have the same label
-chsmack -a User /opt/home/app
-
-# bug workaround on MIC (DEVT-160)
-if [ -e /etc/sysconfig/i18n -a ! -e /etc/locale.conf ]; then
- unset LANG
- unset LC_CTYPE
- unset LC_NUMERIC
- unset LC_TIME
- unset LC_COLLATE
- unset LC_MONETARY
- unset LC_MESSAGES
- unset LC_PAPER
- unset LC_NAME
- unset LC_ADDRESS
- unset LC_TELEPHONE
- unset LC_MEASUREMENT
- unset LC_IDENTIFICATION
- . /etc/sysconfig/i18n
- rm -f /etc/sysconfig/i18n
- [ -n "$LANG" ] && echo LANG=$LANG > /etc/locale.conf
- [ -n "$LC_CTYPE" ] && echo LC_CTYPE=$LC_CTYPE >> /etc/locale.conf
- [ -n "$LC_NUMERIC" ] && echo LC_NUMERIC=$LC_NUMERIC >> /etc/locale.conf
- [ -n "$LC_TIME" ] && echo LC_TIME=$LC_TIME >> /etc/locale.conf
- [ -n "$LC_COLLATE" ] && echo LC_COLLATE=$LC_COLLATE >> /etc/locale.conf
- [ -n "$LC_MONETARY" ] && echo LC_MONETARY=$LC_MONETARY >> /etc/locale.conf
- [ -n "$LC_MESSAGES" ] && echo LC_MESSAGES=$LC_MESSAGES >> /etc/locale.conf
- [ -n "$LC_PAPER" ] && echo LC_PAPER=$LC_PAPER >> /etc/locale.conf
- [ -n "$LC_NAME" ] && echo LC_NAME=$LC_NAME >> /etc/locale.conf
- [ -n "$LC_ADDRESS" ] && echo LC_ADDRESS=$LC_ADDRESS >> /etc/locale.conf
- [ -n "$LC_TELEPHONE" ] && echo LC_TELEPHONE=$LC_TELEPHONE >> /etc/locale.conf
- [ -n "$LC_MEASUREMENT" ] && echo LC_MEASUREMENT=$LC_MEASUREMENT >> /etc/locale.conf
- [ -n "$LC_IDENTIFICATION" ] && echo LC_IDENTIFICATION=$LC_IDENTIFICATION >> /etc/locale.conf
-fi
-
-# workaround for bug PTREL-763
-patch -b -p1 -d/ <<'EOF'
---- bad/etc/pam.d/systemd-user 2014-03-20 10:01:36.657843073 +0100
-+++ good/etc/pam.d/systemd-user 2014-03-20 10:06:51.586121696 +0100
-@@ -4,5 +4,6 @@
-
- account include system-auth
- session include system-auth
-+session required pam_systemd.so
- auth required pam_deny.so
- password required pam_deny.so
-EOF
-
-# extra fix to avoid root and display sessions
-patch -b -p1 -d/ <<'EOF'
---- bad/etc/pam.d/system-auth 2014-04-07 06:16:51.888018876 -0700
-+++ good/etc/pam.d/system-auth 2014-04-07 06:16:46.335018503 -0700
-@@ -11,7 +11,6 @@
- password required pam_deny.so
-
- session optional pam_keyinit.so revoke
--session optional pam_systemd.so
- session required pam_limits.so
- session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
- session required pam_unix.so
-EOF
-
-######### multiuser mode: create additional users
+######### multiuser mode: create additional users and fix their homedirs
tizen_crypted_pass=$(perl -e 'print crypt("tizen", "aa")')
uid=5001
-for user in alice bob carol; do
- useradd -u $uid -d /home/$user -g users -G audio,video,users,display -m --password "$tizen_crypted_pass" $user
- uid=$(( $uid + 1 ))
-done
+for user in alice bob carol guest; do
+ if ! generic_base_user_exists $user; then
+ useradd -u $uid -d /home/$user -g users -G audio,video,users,display -m --password "$tizen_crypted_pass" $user
+ uid=$(( $uid + 1 ))
+ fi
-# create appfw dirs inside homes
-for user in alice bob carol app guest; do
- for appdir in desktop manifest dbspace; do
- mkdir -p /home/$user/.applications/$appdir
- done
- find /home/$user/ -type d -exec chsmack -a User {} \;
- chown -R $user:users /home/$user/
+ generic_base_fix_user_homedir $user
done
-# adjust app group: main group 'users', extra group 'app'
-usermod -g users app
-usermod -G app app
+
+
+++ /dev/null
-############### common-bluetooth.post ################
-
+++ /dev/null
-##################### common-console-tools.post ####################
-
-# customize bash prompt
-cat >/etc/profile.d/bash_prompt_custom.sh <<'EOF'
-if [ "$PS1" ]; then
-
- function proml {
- # set a fancy prompt (overwrite the one in /etc/profile)
- local default="\[\e[0m\]"
- local usercol='\[\e[1;34m\]' # blue
- local hostcol='\[\e[1;32m\]' # green
- local pathcol='\[\e[1;33m\]' # yellow
- local gitcol='\[\e[1;31m\]' # light red
- local termcmd=''
- local _p="$";
-
- if [ "`id -u`" -eq 0 ]; then
- usercol='\[\e[1;31m\]'
- _p="#"
- fi
-
- PS1="${usercol}\u${default}@${hostcol}\h${default}:${pathcol}\w${default}${gitcol}${default}${_p} ${termcmd}"
- }
-
- proml
-
- function rcd () {
- [ "${1:0:1}" == "/" ] && { cd $1; } || { cd $(pwd -P)/$1; }
- }
-
- alias ll="ls -lZ"
- alias lr="ls -ltrZ"
- alias la="ls -alZ"
-
- function get_manifest () {
- rpm -qa --queryformat="%{name} %{Version} %{Release} %{VCS}\n" | sort
- }
-fi
-EOF
-
-############### common-crosswalk.post ################
+#!/bin/sh
+echo "############### common-crosswalk.post ################"
# start wrt widgets preinstall
prepare_widgets.sh
-# make crosswak start in default target
-mkdir -p /lib/systemd/user/default.target.wants/
-ln -s ../xwalk.service /lib/systemd/user/default.target.wants/
-
-# add launchers to weston.ini
-if [ -f /usr/bin/weston ]; then
-
- cat >>/etc/xdg/weston/weston.ini <<EOF
-
-## crosswalk applications ##
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/web-browser.png
-path=/usr/lib64/xwalk/xwalk http://www.google.com
-
-EOF
-
-fi
-
-############### common-desktop-applications.post ################
+#!/bin/sh
+echo "############### common-desktop-applications.post ################"
-# temp workaround to fill each user app_info database with global db infos
-. /etc/tizen-platform.conf
-ail_initdb
-pkg_initdb
-
-echo "Fixing multiuser app_info dbs"
-chsmack -a "_" $TZ_SYS_DB/.app_info.db*
-chmod 764 $TZ_SYS_DB/.app_info.db*
-
-for user in alice bob carol guest app; do
- [ ! -d /home/$user ] && continue
- echo "Fix app_info.db of $user"
- chown -R $user:users /home/$user/.applications/dbspace/
-
- if [ -f /home/$user/.applications/dbspace/.app_info.db ]; then
- sqlite3 /home/$user/.applications/dbspace/.app_info.db <<EOF
-attach database '$TZ_SYS_DB/.app_info.db' as common;
-insert into app_info select * from common.app_info;
-EOF
- else
- cp $TZ_SYS_DB/.app_info.db /home/$user/.applications/dbspace/.app_info.db
- fi
-
- chown -R $user:users /home/$user/.applications/dbspace/
- chsmack -a User /home/$user/.applications/dbspace/.app_info.db*
+# call function defined in meta-generic
+for user in alice bob carol guest; do
+ generic_desktop_applications_fix_userhome $user
done
-if [ -f /usr/bin/weston ]; then
-
- cat >>/etc/xdg/weston/weston.ini <<EOF
-
-## desktop applications ##
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/calculator.png
-path=/usr/apps/org.tizen.calculator/bin/calculator
-
-EOF
-
-fi
-
+++ /dev/null
-############### common-development.post ################
-
-############### common-middleware.post ################
+#!/bin/sh
+echo "############### common-middleware.post ################"
+++ /dev/null
-############### common-multimedia.post ################
-
-if [ -f /usr/bin/weston ]; then
-
- cat >>/etc/xdg/weston/weston.ini <<EOF
-
-## multimedia applications ##
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/webcam.png
-path=/usr/bin/launch_cam.sh
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/video.png
-path=/usr/bin/launch_video.sh
-
-EOF
-
-fi
-############### common-packaging.post ################
-
-rm -rf /root/.zypp
-
-# was: rpm.post
-rm -f /var/lib/rpm/__db*
-rpmdb --rebuilddb
+#!/bin/sh
+echo "############### common-packaging.post ################"
# generate repo files for zypper
function genrepo() {
-############### common-qa.post ################
+#!/bin/sh
+echo "############### common-qa.post ################"
#!/bin/sh
-############### common-qt5.post ################
+echo "############### common-qt5.post ################"
list='
qt5-qtdeclarative-examples
-#################### common-wayland.post ##################
-
-# Add 'app' user to the display group
-/usr/sbin/groupmod -A app display
-
-# add other users to display group
-for user in alice bob carol guest; do
- /usr/sbin/groupmod -A $user display
+#!/bin/sh
+echo "#################### common-wayland.post ##################"
+
+# add 'app' and other users to display group
+for user in alice bob carol guest app; do
+ if generic_base_user_exists $user; then
+ /usr/sbin/groupmod -A $user display
+ fi
done
# Enable a logind session for users on seat0 (the default seat for
unitdir=/usr/lib/systemd/system
mkdir -p $unitdir/graphical.target.wants
for user in app alice bob carol guest; do
+ generic_base_user_exists $user || continue
uid=$(getent passwd $user|cut -f3 -d':')
ln -s ../user-session-launch@.service $unitdir/graphical.target.wants/user-session-launch@seat0-$uid.service
done
+++ /dev/null
-######### common-webkit.post #############
-
-################ WAYLAND MODE #####################################
-# Add over-riding environment to enable the web runtime to
-# run as a different user than the tizen user
-# Some notes on some of the variables:
-# - ELM_THEME is needed in order for the wrt to have visible content
-# - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
-if [ -x /usr/bin/weston ]; then
- cat > /etc/sysconfig/wrt <<EOF
-DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
-XDG_RUNTIME_DIR=/run/user/5000
-ELM_ENGINE=wayland_egl
-ECORE_EVAS_ENGINE=wayland_egl
-ELM_THEME=tizen-HD-light
-WRT_PROCESS_POOL_DISABLE=1
-EOF
-
- # Use the same over-rides for the native prelaunch daemon
- cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
-fi
-
-# Initialize the native application database
-pkg_initdb
-
-# start wrt widgets preinstall
-prepare_widgets.sh
-install_widgets.sh
-
-# Needed to fix TIVI-1629
-if [ -x /usr/bin/vconftool ]; then
- vconftool set -t int -f db/setting/default_memory/wap 0
-fi
-
-if [ -f /usr/bin/weston ]; then
-
- cat >>/etc/xdg/weston/weston.ini <<EOF
-
-## crosswalk applications ##
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/annex.png
-path=/usr/bin/wrt-launcher -s 33CFo0eFJe.annex
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/bubblewrap.png
-path=/usr/bin/wrt-launcher -s ewqPdCunAO.bubblewrap
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/go.png
-path=/usr/bin/wrt-launcher -s SM31mV8fq9.go
-
-[launcher]
-icon=/usr/share/icons/tizen/32x32/mancala.png
-path=/usr/bin/wrt-launcher -s yKrWwxz1KX.mancala
-
-EOF
-
-fi