Repositories:
- - Name: generic
- Url: http://download.tizen.org/live/Tizen:/Generic/x86_64-wayland/
- Options: --ssl_verify=no
-
- Name: generic-wayland_i586
Url: http://download.tizen.org/live/Tizen:/Generic/ia32-wayland/
Options: --ssl_verify=no
- Name: generic-x11_x86_64
Url: http://download.tizen.org/live/Tizen:/Generic/x86_64-x11/
- Options: --ssl_verify=no
\ No newline at end of file
+ Options: --ssl_verify=no
Baseline: tizen-3.0
Active: True
Mic2Options: -f raw --fstab=uuid --copy-kernel --compress-disk-image=bz2 --generate-bmap
- Architecture: ia32
Part: generic-mbr
Language: en_US.UTF-8
Keyboard: us
DefaultUser: tizen
DefaultUserPass: tizen
BootLoader: True
- BootloaderAppend: "rootwait rootfstype=ext4 quiet rw vga=current"
+ BootloaderAppend: "rw vga=current splash rootwait rootfstype=ext4 plymouth.enable=0"
BootloaderTimeout: 3
- BootloaderOptions: '--ptable=gpt --menus="install:Wipe and Install:systemd.unit=system-installer.service:test"'
+ BootloaderOptions: '--ptable=gpt --menus="install:Wipe and Install:systemd.unit=system-installer.service:test"'
StartX: False
Desktop: None
Repos:
UserGroups: "audio,video"
Groups:
- Base System
+ - Console Tools
- Generic Packaging
- - Generic Adaptation
PostScripts:
- base-general
- rpm
- - base-weston-default
- - wrt-widgets.post
- - vconf-keys-default
+ - optimization
+ - customize
NoChrootScripts:
- buildname
-Wayland-i586:
+Minimal:
+ Part: generic-mbr
+
+Wayland:
Part: generic-mbr
UserGroups: "audio,video,weston-launch"
Groups:
+ - Generic Wayland
+ - Generic Adaptation
- Generic Middleware
- - Wayland
- - Console Tools
- Generic Applications
PostScripts:
- - optimization
+ - base-weston-default
+ - wrt-widgets
+ - vconf-keys-default
-Wayland-x86_64:
+X11:
Part: generic-mbr
- UserGroups: "audio,video,weston-launch"
Groups:
+ - Generic X11
+ - Generic Adaptation
- Generic Middleware
- - Wayland
- - Console Tools
- Generic Applications
PostScripts:
- - optimization
\ No newline at end of file
+ - base-x11-default
+ - wrt-widgets
+ - vconf-keys-default
+
--- /dev/null
+Name: Generic Wayland MBR i586
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: generic-mbr
+FileName: generic-wayland-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+ - generic-wayland_i586
-Name: Generic MBR 86_x64
+Name: Generic Wayland MBR x86_64
Schedule: "*"
Active: True
-Platform: Wayland-i586
+Platform: Wayland
Part: generic-mbr
-FileName: generic-mbr-i586
+FileName: generic-wayland-mbr-x86_64
Kernel: kernel-x86-generic
Repos:
- generic-wayland_x86_64
--- /dev/null
+Name: Generic X11 MBR i586
+Schedule: "*"
+Active: True
+Platform: X11
+Part: generic-mbr
+FileName: generic-x11-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+ - generic-x11_i586
--- /dev/null
+Name: Generic X11 MBR x86_64
+Schedule: "*"
+Active: True
+Platform: X11
+Part: generic-mbr
+FileName: generic-x11-mbr-x86_64
+Kernel: kernel-x86-generic
+Repos:
+ - generic-x11_x86_64
-part / --fstype="ext4" --ondisk=sda --size=6144 --active --label tizen-pc-genericdev
\ No newline at end of file
+part / --fstype="ext4" --ondisk=sda --size=6144 --active --label tizen-generic
Description: Generic Adaptation
Name: generic-adaptation
Packages:
-- desktop-skin
- linux-firmware
-- xf86-input-synaptics
-- xf86-video-intel
-- xf86-input-keyboard
-- wrt-widgets
+- kernel-x86-generic
+- dlogutil
+- system-installer
Summary: Generic Adaptation
Description: Generic Applications
Name: generic-applications
Packages:
+- ail
- ca-certificates
-- ca-certificates-mozilla
- webkit2-efl-test
Summary: Generic Applications
- gst-plugins-good
- gstreamer
- gstreamer-vaapi
+- gstreamer-utils
- iptables
- libprivilege-control-conf
- libva-intel-driver
- pulseaudio-module-bluetooth
- pulseaudio-utils
- rfkill
+- sqlite3
- tree
- vaapi-tools
- wpa_supplicant
- wrt-installer-preinstall-service
- wrt-plugins-tizen
- wrt-security
+- wrt-widgets
- zypper
Summary: Generic Middleware
--- /dev/null
+Description: Generic Wayland
+Name: generic-wayland
+Packages:
+- cantarell-fonts
+- dejavu-fonts
+- weston
+- xkeyboard-config
+- tizen-branding-default
+- user-session-units
+- desktop-skin
+Summary: Generic Wayland
--- /dev/null
+Description: Generic X11
+Name: generic-x11
+Packages:
+- xorg-server
+- xf86-input-synaptics
+- xf86-video-intel
+- xf86-input-keyboard
+Summary: Generic X11
-# base-general.post
+################ base-general.post ##################
ln -sf /proc/self/mounts /etc/mtab
-# base-ivi-minimal.post
+################### base-generic-minimal.post #################
+
rm /usr/lib/systemd/system/default.target
ln -sf multi-user.target /usr/lib/systemd/system/default.target
+#################### base-weston-default.post ##################
+# to be synced with profile/ivi/meta-ivi/scripts/base-weston-default.post
+
# Initialize the native application database
pkg_initdb
# home dir must have the same label
chsmack -a User /opt/home/app
-# base-weston-default.post
+# Enable a logind session for 'app' user on seat0 (the default seat for
+# graphical sessions)
mkdir -p /usr/lib/systemd/system/graphical.target.wants
+ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
ln -sf weston.target /usr/lib/systemd/user/default.target
# Enable user@5000.service by setting the linger for user 'app'
-mkdir -p /var/lib/systemd/linger
-touch /var/lib/systemd/linger/app
+#mkdir -p /var/lib/systemd/linger
+#touch /var/lib/systemd/linger/app
# Add over-riding environment to enable the web runtime to
# run on an IVI image as a different user then the tizen user
# Use the same over-rides for the native prelaunch daemon
cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
+# sdx: for AMD (ac.service)
+#cp /etc/sysconfig/wrt /etc/sysconfig/prelaunch
+
# Add a rule to ensure the app user has permissions to
# open the graphics device
cat > /etc/udev/rules.d/99-dri.rules <<EOF
SUBSYSTEM=="drm", MODE="0666"
EOF
+############
+
+# sdx: set DBUS env inside weston shell (login shell)
+cat >/etc/profile.d/user-dbus.sh <<'EOF'
+export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket
+EOF
+
# sdx: user 'app' must own /dev/tty1 for weston to start correctly
cat >/usr/lib/udev/rules.d/99-tty.rules <<EOF
SUBSYSTEM=="tty", KERNEL=="tty1", GROUP="app", OWNER="app"
-EOF
\ No newline at end of file
+EOF
+
+# sdx: fix smack labels on /var/log
+chsmack -a '*' /var/log
+
--- /dev/null
+###################### base-x11-default.post ###################
+
+# enable X11 forwarding on ssh
+echo "X11Forwarding yes" >>/etc/ssh/sshd_config
+echo "AddressFamily inet" >>/etc/ssh/sshd_config
-# buildname.nochroot
+####################### 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 "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
+##################### customize.post ####################
+
+# customize bash prompt
+cat >/etc/profile.d/bash_prompt_custom.sh <<'EOF'
+if [ "$PS1" ]; then
+
+ function parse_git_branch {
+ [ -x "/usr/bin/git" ] && git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
+ }
+
+ 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}\$(parse_git_branch)${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 dbus_find () {
+ echo export $(tr '\0' '\n' </proc/$(pgrep gnome-session)/environ |grep ^DB)
+ }
+
+ function get_manifest () {
+ rpm -qa --queryformat="%{name} %{Version} %{Release} %{VCS}\n" | sort
+ }
+fi
+EOF
+
+++ /dev/null
-# efi.post
-/usr/sbin/setup-efi-ivi
-
+######################## optimization.post #######################
+
# Run prelink to speed up dynamic binary/library loading
/usr/sbin/prelink --all
-# rpm.post
+##################### rpm.post #######################
+
rm -f /var/lib/rpm/__db*
rpmdb --rebuilddb
+##################### vconf-keys-default.post #######################
+
# Needed to fix TIVI-1629
vconftool set -t int -f db/setting/default_memory/wap 0
-######################################## START WRT WIDGETS PREINSTALL ####################
+######### wrt-widgets.post #############
+# start wrt widgets preinstall
prepare_widgets.sh
install_widgets.sh
-######################################## END WRT WIDGETS PREINSTALL ####################
+