platform/adaptation/emulator/system-plugin-emulator.git
2 years agoAdd system-plugin-emulator-config-2parts package 78/270078/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.063213 accepted/tizen/7.0/unified/hotfix/20221116.104413 accepted/tizen/8.0/unified/20231005.092449 accepted/tizen/unified/20220216.010246 submit/tizen/20220125.085407 submit/tizen/20220126.014856 submit/tizen/20220215.110006 submit/tizen/20220216.050658 tizen_7.0_m2_release tizen_8.0_m2_release
Hyotaek Shim [Tue, 25 Jan 2022 07:16:12 +0000 (16:16 +0900)]
Add system-plugin-emulator-config-2parts package

Change-Id: I710a65e6599f02d3e846a75e8016ea688e4f30ee

4 years agoFix emul-setup-audio-volume.service using incorrect dependency 33/225633/3
INSUN PYO [Fri, 21 Feb 2020 10:28:41 +0000 (19:28 +0900)]
Fix emul-setup-audio-volume.service using incorrect dependency

The emul-setup-audio-volume.service runs before the udev event has been processed, so you can not access /dev/snd.

journal log
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Feb 21 19:16:53.365733 localhost systemd[1]: emul-setup-audio-volume.service: Installed new job emul-setup-audio-volume.service/start as 94
Feb 21 19:16:53.396470 localhost systemd[1]: emul-setup-audio-volume.service: About to execute: /usr/bin/amixer cset 'name='Master Playback Switch'' 1
Feb 21 19:16:53.396503 localhost systemd[1]: emul-setup-audio-volume.service: Forked /usr/bin/amixer as 1808
Feb 21 19:16:53.396537 localhost systemd[1]: emul-setup-audio-volume.service: Changed dead -> start
Feb 21 19:16:53.397748 localhost systemd[1]: Got cgroup empty notification for: /system.slice/emul-setup-audio-volume.service
Feb 21 19:16:53.408826 localhost amixer[1808]: amixer: Control default open error: Permission denied

Feb 21 19:16:53.365469 localhost systemd-udevd[1589]: chmod '/dev/snd/seq' 0660
Feb 21 19:16:53.365479 localhost systemd-udevd[1589]: chown '/dev/snd/seq' 0 29
Feb 21 19:16:53.365490 localhost systemd-udevd[1589]: chmod '/dev/snd/timer' 0660
Feb 21 19:16:53.365498 localhost systemd-udevd[1589]: chown '/dev/snd/timer' 0 29
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

systemd-udevd.service only tells you that you are ready to process uevent.
You should use systemd-udev-settle.service to see if the actual uevent has been processed.

Change-Id: I9a43047dff740ff76d46ca895cee731c1df3c4eb
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
4 years agoRemove /etc/fstab configurations 84/224084/1 submit/tizen/20200217.215713 submit/tizen/20200217.220322
Hyotaek Shim [Thu, 6 Feb 2020 06:44:18 +0000 (15:44 +0900)]
Remove /etc/fstab configurations

systemd-remount-fs.service is disabled.
/opt is mounted at the ramdisk(initrd) stage.

Change-Id: I95379988669e54f13ca16bba8f271a48545b8fcf
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix worng Capabilities setting 85/222885/1
INSUN PYO [Tue, 21 Jan 2020 07:12:18 +0000 (16:12 +0900)]
Fix worng Capabilities setting

//////////////////////////////////////////////////////////////////////////////////////////////
Jan 21 16:01:54 localhost systemd[4824]: emul-setup-audio-volume.service: Failed at step SECUREBITS spawning /usr/bin/amixer: Operation not permitted
Jan 21 16:01:54 localhost systemd[1]: emul-setup-audio-volume.service: Main process exited, code=exited, status=213/SECUREBITS
Jan 21 16:01:54 localhost systemd[1]: Failed to start Audio volume setup on emulator.
Jan 21 16:01:54 localhost systemd[1]: emul-setup-audio-volume.service: Unit entered failed state.
Jan 21 16:01:54 localhost systemd[1]: emul-setup-audio-volume.service: Failed with result 'exit-code'.
////////////////////////////////////////////////////////////////////////////////////////////////

Change-Id: Ieafd46038e37096ddfea0fe6a11d1781355ebb8c

4 years agoChange the config value of the "RemainAfterExit=" ("true" -> "yes") 34/208534/1
INSUN PYO [Wed, 26 Jun 2019 00:08:43 +0000 (09:08 +0900)]
Change the config value of the "RemainAfterExit=" ("true" -> "yes")

Change-Id: I82813e270f3ea0e75a22aab4213b89355b9a60d8

5 years agoAdd RequiresMountsFor=/opt to wait-mount@.service. 32/186332/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/5.0/unified/20181102.012325 accepted/tizen/5.5/unified/20191031.014740 accepted/tizen/5.5/unified/mobile/hotfix/20201027.081908 accepted/tizen/6.0/unified/20201030.123257 accepted/tizen/6.0/unified/hotfix/20201103.051901 accepted/tizen/6.5/unified/20211028.093931 accepted/tizen/unified/20180827.160704 submit/tizen/20180809.083017 submit/tizen/20180827.080719 submit/tizen_5.0/20181101.000001 submit/tizen_5.5/20191031.000001 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 submit/tizen_6.5/20211028.161501 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release
INSUN PYO [Thu, 9 Aug 2018 04:30:13 +0000 (13:30 +0900)]
Add RequiresMountsFor=/opt to wait-mount@.service.

In order to apply User/Group to .service, we need /opt/etc/{passwd,group}.

It is not required on emulator, because /opt is mounted by initrd.
To avoid confusion, we do the same patch in the emulator.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: Ia7940f844ea5f2d785a7c7ce96208669262158cb

5 years agoChange user and group of wait-mount@.service to system_fw 93/186193/1 accepted/tizen/unified/20180809.145612 submit/tizen/20180808.111710
INSUN PYO [Wed, 8 Aug 2018 04:33:28 +0000 (13:33 +0900)]
Change user and group of wait-mount@.service to system_fw

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I1350a50b16ea17fc04cfcaedcf349d0bc493ab41

5 years agoAdd wait-mount@opt-usr.service 95/184095/3 accepted/tizen/unified/20180807.061007 submit/tizen/20180806.025213
Dariusz Michaluk [Fri, 13 Jul 2018 12:21:13 +0000 (14:21 +0200)]
Add wait-mount@opt-usr.service

This service is reached when /opt/usr partition is mounted.

Change-Id: If1e2d1f4377f956bf0ff16724adef65da00af56c

6 years agoMerge branch 'tizen_4.0' into tizen 55/155255/2 accepted/tizen/unified/20171017.070838 submit/tizen/20171016.094605
Sooyoung Ha [Mon, 16 Oct 2017 06:58:57 +0000 (15:58 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-ID: Idb12e939fc5438aafd358f8ccdc5ce87596ef63f
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
6 years agoAdd udev rule for emulator SDcard 56/155256/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171012.225811 submit/tizen_4.0/20171012.122106 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Hyotaek Shim [Thu, 12 Oct 2017 12:15:37 +0000 (21:15 +0900)]
Add udev rule for emulator SDcard

Change-Id: Idb12e939fc5438aafd358f8ccdc5ce87596ef63f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoprerun : use system_info_init_db instead of system_info_update_db 20/143420/2 accepted/tizen/4.0/unified/20170828.224249 accepted/tizen/unified/20170818.000013 submit/tizen/20170811.083904 submit/tizen/20170816.021143 submit/tizen/20171016.080448 submit/tizen_4.0/20170828.110001
Kichan Kwon [Thu, 10 Aug 2017 01:10:13 +0000 (10:10 +0900)]
prerun : use system_info_init_db instead of system_info_update_db

- system_info_update_db is vulnerable because it is static executable

Change-Id: Ib9f69051cba162e004d9dc6a90db460a11e8320d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agopackage: update version (0.1.12) 59/139159/1 submit/tizen/20170717.140706
Sooyoung Ha [Mon, 17 Jul 2017 14:01:38 +0000 (23:01 +0900)]
package: update version (0.1.12)

Change-Id: I30cbb644777636a468d64f28da08ea4b7dab353b
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
6 years agofstab: fix wrong mount option for / partition 60/138660/4
INSUN PYO [Thu, 13 Jul 2017 06:22:50 +0000 (15:22 +0900)]
fstab: fix wrong mount option for / partition

Change-Id: I1b484153ba8d4b44f4a57acf731b09096cc6ba73
Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
6 years agopackage: update version (0.1.11) 49/137449/1 submit/tizen/20170710.062856
Sooyoung Ha [Thu, 6 Jul 2017 03:02:31 +0000 (12:02 +0900)]
package: update version (0.1.11)

Change-Id: Iadeb3101aecfd196651211c43aab570117763799
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
6 years agoservice: modify emul-setup-audio-volume service 48/137448/1
Sooyoung Ha [Thu, 6 Jul 2017 02:54:55 +0000 (11:54 +0900)]
service: modify emul-setup-audio-volume service

This service file uses amixer and amixer uses /dev/snd device.
The /dev/snd device has 'audio' gid. If this service file gains audio
group permission, it will be able to excute amixer binary.
systemd-udevd.service modifies the gid of /dev/snd to audio, so 'After'
contents also modified.

Change-Id: Ie639d0115b843568af3f97da6944f38d0f4d7cf4
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: install license by %license macro 00/126200/1 accepted/tizen/4.0/unified/20170816.013436 accepted/tizen/unified/20170420.160425 submit/tizen/20170420.112525 submit/tizen_4.0/20170811.094300 tizen_4.0.m1_release
Sooyoung Ha [Thu, 20 Apr 2017 10:59:54 +0000 (19:59 +0900)]
package: install license by %license macro

Change-Id: I4a9407c07738b53fb713d63cb546e79757c82937
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version (0.1.10) 33/120033/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170321.103309 accepted/tizen/ivi/20170321.095711 accepted/tizen/mobile/20170321.095616 accepted/tizen/tv/20170321.095649 accepted/tizen/unified/20170321.095720 accepted/tizen/wearable/20170321.095658 submit/tizen/20170321.073808
Sooyoung Ha [Tue, 21 Mar 2017 07:36:39 +0000 (16:36 +0900)]
package: update version (0.1.10)

Change-Id: I38ea80a21b1da73ce63d8560a07bfbcae0b5da8f
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agofstab: mount /mnt directory to /opt/mnt 11/120011/2
Sooyoung Ha [Tue, 21 Mar 2017 06:31:52 +0000 (15:31 +0900)]
fstab: mount /mnt directory to /opt/mnt

I committed what made root filesystem as read only before. After that,
HDS(host directory sharing) has been failed because /mnt directory is
read only, so cannot make new directory. For correcting it I remount
the /mnt directory to /opt/mnt which is not read only.

Change-Id: I00c3b627ffe4670fb5ad876b7c0983d6303a6965
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agopackage: update version (0.1.9) 96/118196/1 accepted/tizen/common/20170314.172812 accepted/tizen/ivi/20170310.032401 accepted/tizen/mobile/20170310.032318 accepted/tizen/tv/20170310.032347 accepted/tizen/unified/20170310.075724 accepted/tizen/wearable/20170310.032354 submit/tizen/20170309.093127 submit/tizen_unified/20170310.011401
Sooyoung Ha [Thu, 9 Mar 2017 06:36:52 +0000 (15:36 +0900)]
package: update version (0.1.9)

Change-Id: I747625a77af86eed667b740e2b608a1fc08d1c4e
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agofstab: mount root-filesystem as read only 35/118035/2
Sooyoung Ha [Wed, 8 Mar 2017 08:42:56 +0000 (17:42 +0900)]
fstab: mount root-filesystem as read only

Change-Id: I753168a4a24bf4c380246a35956a6d3d33c9d49c
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoudev: modify vdpram device group ID 93/102193/1 accepted/tizen/common/20161208.135439 accepted/tizen/ivi/20161209.005151 accepted/tizen/mobile/20161209.005059 accepted/tizen/tv/20161209.005118 accepted/tizen/unified/20170309.031204 accepted/tizen/wearable/20161209.005135 submit/tizen/20161208.034257 submit/tizen_unified/20170308.100403
Sooyoung Ha [Mon, 5 Dec 2016 07:20:22 +0000 (16:20 +0900)]
udev: modify vdpram device group ID

GID 'system' is not used anymore.

Change-Id: I7a6287dcacc9830305e118c1ba03cc8d0401ced2
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agosystemd: change GID/UID of non-daemon service 47/95047/1 accepted/tizen/common/20161102.122220 accepted/tizen/ivi/20161103.000139 accepted/tizen/mobile/20161103.000054 accepted/tizen/tv/20161103.000109 accepted/tizen/wearable/20161103.000124 submit/tizen/20161102.085655
Sooyoung Ha [Wed, 2 Nov 2016 05:48:47 +0000 (14:48 +0900)]
systemd: change GID/UID of non-daemon service

To follow the platform's secure profile, the group ID and User ID of
services which are not daemon and not root privilaged are modified.

Change-Id: I5d3bc561bf1239817c8f12c68c180d0edac9e5b0
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoscript: update screen.always_on with model-config.xml 34/88634/2 accepted/tizen/3.0/ivi/20161011.065125 accepted/tizen/3.0/mobile/20161015.034156 accepted/tizen/3.0/tv/20161016.005753 accepted/tizen/3.0/wearable/20161015.084422 accepted/tizen/common/20160921.161817 accepted/tizen/ivi/20160929.002320 accepted/tizen/mobile/20160929.002213 accepted/tizen/tv/20160929.002204 accepted/tizen/wearable/20160929.002334 submit/tizen/20160921.022647 submit/tizen/20160928.082412 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000006 submit/tizen_3.0_tv/20161015.000005 submit/tizen_3.0_wearable/20161015.000006
Minkee Lee [Tue, 20 Sep 2016 05:22:16 +0000 (14:22 +0900)]
script: update screen.always_on with model-config.xml

Change-Id: Ib4f8b87c7714cb6622ffd7ce164b441061b85800
Signed-off-by: Minkee Lee <minkee.lee@samsung.com>
7 years agoscript: update system info with model-config.xml 66/82566/2 accepted/tizen/common/20160808.121606 accepted/tizen/ivi/20160809.062750 accepted/tizen/mobile/20160809.062655 accepted/tizen/tv/20160809.062716 accepted/tizen/wearable/20160809.062728 submit/tizen/20160808.075003
Sooyoung Ha [Thu, 4 Aug 2016 07:43:06 +0000 (16:43 +0900)]
script: update system info with model-config.xml

Change-Id: I380fe24496a6543b3acec4e84a9422f08f4765b6
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agoSet the SMACK security label to run given executable file in systemd services 35/80835/1 accepted/tizen/common/20160721.175845 accepted/tizen/ivi/20160721.090759 accepted/tizen/mobile/20160721.090510 accepted/tizen/tv/20160721.091327 accepted/tizen/wearable/20160721.091039 submit/tizen/20160721.003054
jooseong lee [Wed, 20 Jul 2016 10:59:00 +0000 (19:59 +0900)]
Set the SMACK security label to run given executable file in systemd services

Change-Id: Ie47499a371a35752e019ca43ac99e7b233d5a9ee
Signed-off-by: jooseong lee <jooseong.lee@samsung.com>
7 years agoscript: add PATH variable for security 55/77255/2 accepted/tizen/common/20160630.151856 accepted/tizen/ivi/20160630.063200 accepted/tizen/mobile/20160630.063229 accepted/tizen/tv/20160630.063151 accepted/tizen/wearable/20160630.063147 submit/tizen/20160630.014137
Sooyoung Ha [Wed, 29 Jun 2016 07:48:32 +0000 (16:48 +0900)]
script: add PATH variable for security

Change-Id: Ib3ce6b663c3cfe93b9fd044fb9723f11ded293f7
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
7 years agosmack: modify video smack rule 39/75939/1 accepted/tizen/common/20160622.150107 accepted/tizen/ivi/20160623.122651 accepted/tizen/mobile/20160623.122607 accepted/tizen/tv/20160623.122618 accepted/tizen/wearable/20160623.122630 submit/tizen/20160622.104022
Sooyoung Ha [Wed, 22 Jun 2016 07:33:38 +0000 (16:33 +0900)]
smack: modify video smack rule

Change-Id: I6f077a6dcd566ed153660104f8c238533684d39a
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agofstab: remove hard-coded dev names 36/66436/2 accepted/tizen/common/20160420.141326 accepted/tizen/ivi/20160420.044656 accepted/tizen/mobile/20160420.044607 accepted/tizen/tv/20160420.044619 accepted/tizen/wearable/20160420.044637 submit/tizen/20160420.025011
SeokYeon Hwang [Tue, 19 Apr 2016 03:53:01 +0000 (12:53 +0900)]
fstab: remove hard-coded dev names

Mounting filesystem in fstab is redundant. Because all filesystem have
been mounted in ramfs before init.

Change-Id: Ia4788ce0c291c52518e0d7563d54713003017634
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
8 years agoremove duplicated service file 89/61489/1 accepted/tizen/common/20160312.065444 accepted/tizen/ivi/20160312.011423 accepted/tizen/mobile/20160312.011257 accepted/tizen/tv/20160312.011324 accepted/tizen/wearable/20160312.011352 submit/tizen/20160312.005303
Taeyoung Kim [Tue, 8 Mar 2016 08:14:28 +0000 (17:14 +0900)]
remove duplicated service file

- tizen-system-env.service is installed by system-plugin
  which is the common plugin. Thus emulator plugin
  should not have the file.

Change-Id: Id7db2f7819e4463024f5ac69c3fe7676c9d0d7fa
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoservice: change tizen-generate-env.service to tizen-system-env.service 57/61257/1 accepted/tizen/common/20160308.142628 accepted/tizen/common/20160311.201313 accepted/tizen/ivi/20160311.145850 accepted/tizen/mobile/20160311.142757 accepted/tizen/tv/20160311.144437 accepted/tizen/wearable/20160311.145209 submit/tizen/20160308.014336 submit/tizen/20160310.071522
Taeyoung Kim [Mon, 7 Mar 2016 05:07:49 +0000 (14:07 +0900)]
service: change tizen-generate-env.service to tizen-system-env.service

- tizen-generate-env.service for Emulator and
  tizen-system-env.service for Target are same file,
  but the names are different. Thus the name of Emulator
  is changed.

Change-Id: I09af5d13c1f126b1b265fb815239cc3d6b4a4a6b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoswap: changed the way to enable swap 25/52625/2
SeokYeon Hwang [Mon, 8 Jun 2015 04:51:04 +0000 (13:51 +0900)]
swap: changed the way to enable swap

1. Changed swap enabling method to systemd style.
2. Detected swap device by "disk label" to avoid fixing device node.

Change-Id: I499accbfcda622d391ca05a3e5481d38c84e087b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit d094496fd41e80b28fcab4de61d902012d2ec609)
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoudev_rules: cleaned-up 67/52467/1
SeokYeon Hwang [Tue, 23 Jun 2015 07:04:32 +0000 (16:04 +0900)]
udev_rules: cleaned-up

Cleaned-up some rules those are not needed anymore.
Added rules for yagl/drm.

Change-Id: Ie80639c6ce1c5717a8b4e17de591d3168f281648
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 0d8980f4d26051aa0813d0d07aeed0a7681c80cd)

8 years agoudev_rules: enabled udev-rule-driven sdcard detection 66/52466/1
SeokYeon Hwang [Mon, 8 Jun 2015 05:24:36 +0000 (14:24 +0900)]
udev_rules: enabled udev-rule-driven sdcard detection

Change-Id: I3e57fd8337be841362156ecd7c9cba67db11a346
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 4510e5ae1158cdfc74c4705147262ed50d669b8e)

8 years agofilesystem: modified set-model-config.sh 09/52409/2 accepted/tizen/ivi/20160218.022909 accepted/tizen/mobile/20151125.072445 accepted/tizen/tv/20151125.072457 accepted/tizen/wearable/20151125.072513 submit/tizen/20151125.063743 submit/tizen/20160312.005325 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001
GiWoong Kim [Tue, 11 Aug 2015 10:36:00 +0000 (19:36 +0900)]
filesystem: modified set-model-config.sh

DPI units has been changed. Script supports both
previous value and new value.

Change-Id: I65f3dfa1973f385846d4dd86ddf2a13a7befd465
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
(cherry picked from commit d21989a9e40d8d4c4a03645f286d394c327b51e6)

8 years agoprerun: enhanced code readability 08/52408/2
SeokYeon Hwang [Tue, 30 Jun 2015 05:10:52 +0000 (14:10 +0900)]
prerun: enhanced code readability

Change-Id: Ia2910089eac42c2c609eb330ecaada3cff9caebe
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
(cherry picked from commit 082137463a0e9ab58ba36bfecd9d80a4b34b9a5e)

8 years agoprerun: skip and inform if there is not model-config.sh 07/52407/2
SeokYeon Hwang [Tue, 30 Jun 2015 03:00:32 +0000 (12:00 +0900)]
prerun: skip and inform if there is not model-config.sh

Change-Id: I534c47517ee7f10e3b7d7766d2a22d3e3f6b29f2
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 467456149148eb87d716152ec992993ef1266536)

8 years agoprerun: did not use "busybox readlink" 05/52405/2
SeokYeon Hwang [Tue, 30 Jun 2015 01:25:25 +0000 (10:25 +0900)]
prerun: did not use "busybox readlink"

"busybox readlink -f" can not identify absolute path for nonexistent file.
So, we do not use "busybox readlink". It is safe now since no symbolic links
are used in files path that files are used in prerun script.

Change-Id: Ifae058b490a1ebee9532f89a53eebf43e1107dd7
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 3a71b1b13da6df0f63faaa9a654d20ea15134786)

8 years agoprerun: commented out lazy execution 03/52403/1
SeokYeon Hwang [Wed, 24 Jun 2015 06:15:16 +0000 (15:15 +0900)]
prerun: commented out lazy execution

Prerun execution from ramfs - before init - is verified.
So we commented lazy execution out.

Change-Id: Ic86c27f033cb27d365a468f452f04a230bf7e7c5
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 4a18e9d177f2c1bc9c34b3a8f7ead235814eda71)

8 years agoprerun: cleaned-up messages 02/52402/1
SeokYeon Hwang [Wed, 24 Jun 2015 06:08:21 +0000 (15:08 +0900)]
prerun: cleaned-up messages

Change-Id: I7f814ae874cbd8a60a432febf851007d083a91b8
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit e252eb0c37036e7eab70062496207ca3c4fa8136)

8 years agoprerun: introduced emulator enviroment generator 01/52401/1
SeokYeon Hwang [Tue, 23 Jun 2015 14:08:44 +0000 (23:08 +0900)]
prerun: introduced emulator enviroment generator

Emulator environment variables generated by prerun script.
Removed "proxy_setting.sh".

Change-Id: I7d59a47322b8b08367726610775c15b7b39d8374
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit d2ec5e1b8b1ae7178e5ec749b8014a8a4c07bbdd)

8 years agoprerun: modified prerun script 00/52400/1
SeokYeon Hwang [Tue, 23 Jun 2015 14:05:53 +0000 (23:05 +0900)]
prerun: modified prerun script

Basic binutils are prepared by prerun script.

Change-Id: Id55d82c40a83e1ed64a71bacff7fb2ef22d8d768
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
(cherry picked from commit 98c695698a56f7327553743f475da69aa0740b87)

8 years agoFix emul-setup-audio-volume.service 63/50163/2
Rafal Krypa [Mon, 26 Oct 2015 09:04:12 +0000 (10:04 +0100)]
Fix emul-setup-audio-volume.service

Use correct path to amixer binary for setting volume levels.

Change-Id: I15a4a8b889f1f7b83f8fb0056296348aa3223432

8 years agospec: add /etc/fstab into system-plugin-emulator package 71/49271/1 accepted/tizen/mobile/20151014.093409 accepted/tizen/tv/20151014.093418 accepted/tizen/wearable/20151014.093431 submit/tizen/20151014.070251 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Sangjung Woo [Mon, 12 Oct 2015 08:11:53 +0000 (17:11 +0900)]
spec: add /etc/fstab into system-plugin-emulator package

/etc/fstab is moved to system-plugin-emulator from setup package.

Change-Id: Ic49773d440cb198f96834f1e195b34ffb0a02462
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agosmack: Set model-config.xml as '_' after modification 54/49054/2 accepted/tizen/mobile/20151008.052000 accepted/tizen/tv/20151008.052012 accepted/tizen/wearable/20151008.052036 submit/tizen/20151008.025001
Sangjung Woo [Tue, 6 Oct 2015 02:54:01 +0000 (11:54 +0900)]
smack: Set model-config.xml as '_' after modification

After executing emulator/prerun.d/model-config.sh,
/etc/config/model-config.xml is labeled as "System". This is mainly
because model-config.sh is executed by systemd(pid:1) that is labeled as
"System". This patch sets the model-config.xml as '_' after
modification.

Change-Id: Ief6adaed73c70c0703dde74aa242d55fd2d6ccdf
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agospec: Use '%{_prefix}/lib' instead of '%{_libdir}' 39/48939/1 accepted/tizen/mobile/20151002.074436 accepted/tizen/tv/20151002.074458 accepted/tizen/wearable/20151002.074507 submit/tizen/20151002.055855
Sangjung Woo [Fri, 2 Oct 2015 02:29:33 +0000 (11:29 +0900)]
spec: Use '%{_prefix}/lib' instead of '%{_libdir}'

In 64-bit environment, '%{_libdir}' directive convert into '/usr/lib64'.
However, udev rule files are basically installed into /lib/udev/rules.d/
in Tizen environment. This patch fixes this build break issue.

Change-Id: I1fa468523a6cdd19644b071364674022741b34b4
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agospec: cleanup the spec and systemd unit files 68/48868/2 submit/tizen/20151001.083301
Sangjung Woo [Thu, 1 Oct 2015 02:58:51 +0000 (11:58 +0900)]
spec: cleanup the spec and systemd unit files

* Remove unused systemd unit file such as tizen-boot.target, wm_ready.service,
tizen-system.target, tizen-runtime.target
* Remove tizen-readahead functionality since that does not used in v3.0
* Use "%install_service" directive instead of primitive command such as
cp and ln
* Remove unused macros

Change-Id: I4c3f695446e30023528f75227ff627f53669c2e3
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agoReplace hardcoded library path with variable 72/48372/3
Aleksander Mistewicz [Fri, 18 Sep 2015 12:27:51 +0000 (14:27 +0200)]
Replace hardcoded library path with variable

Use already defined %{systemd_dir} macro for /usr/lib/systemd
Variable %{_libdir} should be used instead of /usr/lib

Change-Id: I033df9a689fea113cd2f44d9503ec267cbdf26e2
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
8 years agoRemove XDG_RUNTIME_DIR variable from /run/tizen-system-env 01/48501/1 accepted/tizen/mobile/20150925.012642 accepted/tizen/tv/20150925.012656 accepted/tizen/wearable/20150925.012702 submit/tizen/20150924.075354
Sangjung Woo [Tue, 22 Sep 2015 06:31:43 +0000 (15:31 +0900)]
Remove XDG_RUNTIME_DIR variable from /run/tizen-system-env

* /run/tizen-mobile-env is renamed to /run/tizen-system-env.
* XDG_RUNTIME_DIR variable could be changed in multi user environment so
its fixed value should be removed. Even though some special processes
such as boot-animation runs in system session, but XDG_RUNTIME_DIR
variable is required since they has its own UI. So /run/xdg-root-env
is created for this purpose.

Change-Id: I216124bf0110b7b435f91af6086ae56330acc2ef
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
8 years agobuild: enable the x86_64 build 48/42848/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150713.013244 accepted/tizen/tv/20150713.013254 accepted/tizen/wearable/20150713.013304 submit/tizen/20150712.051730 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Sooyoung Ha [Fri, 3 Jul 2015 05:40:07 +0000 (14:40 +0900)]
build: enable the x86_64 build

Change-Id: I3a42f1beef23982f6ec14a842b309d3ac7dbb38d
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agopackaging: version up 61/40261/1 tizen_3.0.2015.q2_common accepted/tizen/common/20150602.120022 accepted/tizen/mobile/20150602.130812 accepted/tizen/tv/20150602.130831 accepted/tizen/wearable/20150602.130758 submit/tizen/20150602.060836
Sooyoung Ha [Mon, 1 Jun 2015 14:13:02 +0000 (23:13 +0900)]
packaging: version up

package version update to 0.1.7

Change-Id: I1e8e7045eac12d4cf87bdc2080a9866b61986a02
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agomount: removed mount associated files 60/40260/1
Jinhyung Choi [Mon, 4 May 2015 05:56:58 +0000 (14:56 +0900)]
mount: removed mount associated files

- mount operation is executed by emulator daemon.
  so, removed associated script, service, etc.

Conflicts:

        packaging/system-plugin-emulator.spec

Change-Id: I611e5ec0af41e83e12c17b95061a1e191be553d1
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agochange vdpram node permission. Add write permission 59/40259/1
Dongchul Lim [Mon, 6 Apr 2015 04:34:08 +0000 (13:34 +0900)]
change vdpram node permission. Add write permission

Change-Id: I8488d7f549be5a886da516d41754cde170c257f5
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoudev: change vdpram node permission. 58/40258/1
Sooyoung Ha [Wed, 1 Apr 2015 12:09:43 +0000 (21:09 +0900)]
udev: change vdpram node permission.

add 'system' group and smack label on 95-tizen-emulator.rules.

Change-Id: I80119dd4058e0de6958f13b893407d606530c510
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoudev: add tizen-udev-default.rules 57/40257/1
Sooyoung Ha [Mon, 6 Oct 2014 07:56:52 +0000 (16:56 +0900)]
udev: add tizen-udev-default.rules

This rules was moved from systemd. And included in
50-udev-default.rules in systemd. But to make systemd
more nicely merge from upstream, all of modification
is moved to specific common rules.

Conflicts:

        packaging/system-plugin-emulator.spec

Change-Id: I3289d918b114f20781290af26d764fd4a6fd1130
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agosystemd: fix failure on emul-setup-audio-volume.service 56/40256/1
SeokYeon Hwang [Fri, 29 Aug 2014 04:45:14 +0000 (13:45 +0900)]
systemd: fix failure on emul-setup-audio-volume.service

Conflicts:

        packaging/system-plugin-emulator.spec

Change-Id: Ib2e800739f4312265e66a5ac2f046a47730dd706
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agopackaging: modify spec file for fix network problem. 55/40255/1
Sooyoung Ha [Tue, 8 Jul 2014 08:10:15 +0000 (17:10 +0900)]
packaging: modify spec file for fix network problem.

Add %posttrans on spec file and now the
/etc/preconf.d/emulator_ns.preinit script will execute
after all packages have been installed. It will change
the resolv.conf file.

Conflicts:

packaging/system-plugin-emulator.spec

Change-Id: I06e4d4a727d0dfa4e95b8240ec0bb500613bc063
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoudev: apply smack rule for drm 52/40252/1
SeokYeon Hwang [Mon, 23 Jun 2014 01:49:04 +0000 (10:49 +0900)]
udev: apply smack rule for drm

Conflicts:

filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules

Change-Id: Ia2ac79e0b62e69f7b9ac21a2fe75a23ece44f202
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agosystemd: apply some systemd target files from system-plugin-common. 51/40251/1
Sooyoung Ha [Fri, 20 Jun 2014 05:33:00 +0000 (14:33 +0900)]
systemd: apply some systemd target files from system-plugin-common.

/usr/lib/systemd/system/tizen-boot.target
/usr/lib/systemd/system/tizen-system.target
/usr/lib/systemd/system/tizen-runtime.target

Conflicts:

        packaging/system-plugin-emulator.spec

Change-Id: I5d56f00b6c337284cc142a82cfc1883cb7dea207
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoservice: apply tizen-generate-env.service file. 50/40250/1
Sooyoung Ha [Thu, 19 Jun 2014 13:31:17 +0000 (22:31 +0900)]
service: apply tizen-generate-env.service file.

This file is needed by other services. This was deleted
because of conflict with tizen-mobile-session package,
but tizen-mobile-session package doesn't be installed on
kiran image. So this service file should be in
system-plugin-emulator package.

Conflicts:

        packaging/system-plugin-emulator.spec

Change-Id: I76763a87f7d7c1a52b329821309d0fa19d68a4fe
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agofilesystem: take some service files from tizen_2.4 repo 49/40249/1
Sooyoung Ha [Mon, 1 Jun 2015 08:27:35 +0000 (17:27 +0900)]
filesystem: take some service files from tizen_2.4 repo

Change-Id: I8b5fa79992aca41b1cd9568807bc4d25039dde1a
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agospec: modify specfile to fix build fail. 33/39333/1
Sooyoung Ha [Wed, 13 May 2015 07:42:28 +0000 (16:42 +0900)]
spec: modify specfile to fix build fail.

We delete and add some file but didn't apply on spec file. I fixed them.

Change-Id: Iaf40d88c971479cec9009dc449d9f2dd01de4ea4
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
8 years agoRevert "Merge branch 'spin-develop' into tizen" 32/39332/1 archives/tizen_20150513
Sangho Park [Wed, 13 May 2015 07:22:41 +0000 (16:22 +0900)]
Revert "Merge branch 'spin-develop' into tizen"

This reverts commit 35eb64714feb7dc58affc0a8e9e74da4a8d20adc, reversing
changes made to ff58b3c839a627da9d2e894df78fd8b699123e20.

Change-Id: I178baeb2e834a0aa102e5d1296fd1b54edd4f44e
Signed-off-by: Sangho Park <sangho1206.park@samsung.com>
8 years agoMerge branch 'spin-develop' into tizen
Sangho Park [Wed, 13 May 2015 06:26:56 +0000 (15:26 +0900)]
Merge branch 'spin-develop' into tizen

Signed-off-by: Sangho Park <sangho1206.park@samsung.com>
Conflicts:
AUTHORS
LICENSE
NOTICE
filesystem/etc/inittab
filesystem/etc/profile.d/proxy_setting.sh
filesystem/etc/rc.d/rc.sysinit
filesystem/usr/lib/systemd/system/emul-common-preinit.service
filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service
filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules
packaging/system-plugin-emulator.changes
packaging/system-plugin-emulator.spec

Change-Id: I57283d0714e8fa7876b051d75f80c86818b53031

9 years agoRevert "udev: add smack label for input groups."
Sooyoung Ha [Fri, 8 May 2015 05:12:42 +0000 (14:12 +0900)]
Revert "udev: add smack label for input groups."

This reverts commit a0c066a2ace6d7828fe8ab6fe555cd7d4dfcca63.
The label is already enabled by /usr/lib/udev/rules.d/95-tizen-devices.rules
file which is in libdevice-node package.

Change-Id: Ifb412da701252e96ce59a79b28c3e1fb827c86b9
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agobuild: package version up (0.1.7)
Jinhyung Choi [Mon, 4 May 2015 07:00:10 +0000 (16:00 +0900)]
build: package version up (0.1.7)

Change-Id: Iedb47a4997a6195bcd20b20ba758a502401b8e29
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
9 years agomount: removed mount associated files
Jinhyung Choi [Mon, 4 May 2015 05:56:58 +0000 (14:56 +0900)]
mount: removed mount associated files

- mount operation is executed by emulator daemon.
  so, removed associated script, service, etc.

Change-Id: I611e5ec0af41e83e12c17b95061a1e191be553d1
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
9 years agoudev: add smack label for input groups.
Sooyoung Ha [Sun, 3 May 2015 10:19:17 +0000 (19:19 +0900)]
udev: add smack label for input groups.

Change-Id: Ia639c870fdb901d5bf5302c2bbbd6d578945c000
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agochange vdpram node permission. Add write permission
Dongchul Lim [Mon, 6 Apr 2015 04:34:08 +0000 (13:34 +0900)]
change vdpram node permission. Add write permission

Signed-off-by: dc7.lim <dc7.lim@samsung.com>
Change-Id: I8488d7f549be5a886da516d41754cde170c257f5

9 years agoudev: change vdpram node permission.
Sooyoung Ha [Wed, 1 Apr 2015 12:09:43 +0000 (21:09 +0900)]
udev: change vdpram node permission.

add 'system' group and smack label on 95-tizen-emulator.rules.

Change-Id: I80119dd4058e0de6958f13b893407d606530c510
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agofilesystem: fstab modification
Sooyoung Ha [Thu, 5 Mar 2015 04:05:38 +0000 (13:05 +0900)]
filesystem: fstab modification

remove the /var binding from spec file.

Change-Id: I6030a221bcdc13f56cfe9d37a6cf4bdcf450ea5c
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agointroduced prerun scripts. 61/34361/1
SeokYeon Hwang [Mon, 26 Jan 2015 07:15:08 +0000 (16:15 +0900)]
introduced prerun scripts.

This script is executed from initramfs.
It is very useful for manipulating some files on rootfs before init.
(Configuration files, ...)

Change-Id: I31cd697f3415e7903e670aa44c32c700f0f54091
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
9 years agowm_ready: add 30sec timeout on wm_read.service file
Sooyoung Ha [Wed, 7 Jan 2015 06:35:34 +0000 (15:35 +0900)]
wm_ready: add 30sec timeout on wm_read.service file

In general case, likely, wm_ready will be stopped within 5sec. But in newly
comming model, wm_ready can not be stopped by problem of xorg or
enlightenment. In this case, we have to ignore the initialization of
enlightenment. As a workaround(maybe no other choice), timeout was added
to wm_ready.service unit.

Change-Id: I08af4ab2ffb313801fb3c8d520223d6e4132ba80
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoMerge remote-tracking branch 'develop/tizen_2.3b' into tizen_2.3
Sangho Park [Tue, 4 Nov 2014 13:09:44 +0000 (22:09 +0900)]
Merge remote-tracking branch 'develop/tizen_2.3b' into tizen_2.3

Conflicts:
AUTHORS
filesystem/etc/emulator/model-config.sh
filesystem/usr/lib/systemd/system/emul-setup-audio-volume.service
filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules
packaging/system-plugin-emulator.spec

9 years agoFix setting SMACK label in udev rules for systemd 212 31/29331/1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0_ivi accepted/tizen/common/20141104.094626 accepted/tizen/ivi/20141107.010753 accepted/tizen/mobile/20141119.074206 submit/tizen/20141104.040328 submit/tizen_mobile/20141120.000000 tizen_3.0_ivi_release
Maciej Wereski [Fri, 24 Oct 2014 09:52:53 +0000 (11:52 +0200)]
Fix setting SMACK label in udev rules for systemd 212

Change-Id: I991f2d7c45aaa10e9edfcc0eb5d9d6880f5cb3ce
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
9 years agoudev: add tizen-udev-default.rules
Sooyoung Ha [Mon, 6 Oct 2014 07:56:52 +0000 (16:56 +0900)]
udev: add tizen-udev-default.rules

This rules was moved from systemd. And included in
50-udev-default.rules in systemd. But to make systemd
more nicely merge from upstream, all of modification
is moved to specific common rules.

Change-Id: I3289d918b114f20781290af26d764fd4a6fd1130
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoproxy_settings.sh: add the missing keyword 'export' 53/28153/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.m14.3_ivi accepted/tizen/common/20140929.111436 accepted/tizen/ivi/20141006.082750 submit/tizen/20140929.054739 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release
Alice Liu [Sun, 28 Sep 2014 06:42:22 +0000 (14:42 +0800)]
proxy_settings.sh: add the missing keyword 'export'

Add the missing keyword 'export' for ftp_proxy and
socks_proxy to fix bug TC-1663.

Change-Id: I89356536c874ce7878de0386b952a8103e896521
Signed-off-by: Alice Liu <alice.liu@intel.com>
9 years agosystemd: fix failure on emul-setup-audio-volume.service
SeokYeon Hwang [Fri, 29 Aug 2014 04:45:14 +0000 (13:45 +0900)]
systemd: fix failure on emul-setup-audio-volume.service

Change-Id: Ib2e800739f4312265e66a5ac2f046a47730dd706
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
9 years agofilesystem: modified model-config.sh
GiWoong Kim [Mon, 26 May 2014 05:18:39 +0000 (14:18 +0900)]
filesystem: modified model-config.sh

remove hard-coded value

Change-Id: I230053116f80fc4dfb68f334eff5ef74bc526d67
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
9 years agoudev: modify smack rule's attr name.
Sooyoung Ha [Wed, 30 Jul 2014 11:01:22 +0000 (20:01 +0900)]
udev: modify smack rule's attr name.

the name 'SMACK' has changed to 'SECLABEL{smack}'.

Change-Id: I75c166261a24fc51e4535d9ed345b7a9c3d87672
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agopackaging: modify spec file for fix network problem.
Sooyoung Ha [Tue, 8 Jul 2014 08:10:15 +0000 (17:10 +0900)]
packaging: modify spec file for fix network problem.

Add %posttrans on spec file and now the
/etc/preconf.d/emulator_ns.preinit script will execute
after all packages have been installed. It will change
the resolv.conf file.

Change-Id: I06e4d4a727d0dfa4e95b8240ec0bb500613bc063
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoproxy_settings.sh: explicitly add host address to no_proxy 56/23556/1 accepted/tizen/common/20140918.092515 accepted/tizen/ivi/20140919.141649 accepted/tizen/ivi/20140919.153037 submit/tizen/20140918.012348 submit/tizen_common/20140918.063712 submit/tizen_ivi/20140918.063703
Rafal Krypa [Fri, 27 Jun 2014 09:49:31 +0000 (11:49 +0200)]
proxy_settings.sh: explicitly add host address to no_proxy

Current no_proxy setting works fine for default qemu network settings.
It contains network 10.0.0.0/16, which should include host address and
enable communication with host.
But it doesn't work for zypper. Zypper respects no_proxy variable, but
accepts only host addresses, not network addresses. To enable local zypper
repo from host, it is required to add host address to no_proxy explicitly.

Change-Id: I0ee189ea952d9c7b12f169abd7bd0364d5a30aee
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
9 years agoproxy_settings.sh: modify parsing kernel cmdline for proxy options 55/23555/1
Rafal Krypa [Fri, 27 Jun 2014 09:46:14 +0000 (11:46 +0200)]
proxy_settings.sh: modify parsing kernel cmdline for proxy options

This changes script's behavior when a proxy option appears more than once
in the kernel command line. Previously only the last occurrence was parsed.
But this creates problem with how Tizen qemu passes these options. Proxy
settings are appended to the kernel command line based on gconf settings in
the hosts environment. When there is no global proxy set, qemu will always
append empty "http_proxy=". If a user wants to set proxy only for qemu, but
not for the entire system, he may try to manually add settings to cmdline.
But Tizen emulator will append empty settings after user settings,
overriding it.

This patch changes parsing of proxy settings to get only the first
occurrence, not the last. It enables a user to give his own proxy only for
the emulator.

Change-Id: I15834841b115ccb66fb5d67795333e5dc227998b
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
9 years agoudev: apply smack rule for drm
SeokYeon Hwang [Mon, 23 Jun 2014 01:49:04 +0000 (10:49 +0900)]
udev: apply smack rule for drm

Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
9 years agosystemd: apply some systemd target files from system-plugin-common.
Sooyoung Ha [Fri, 20 Jun 2014 05:33:00 +0000 (14:33 +0900)]
systemd: apply some systemd target files from system-plugin-common.

/usr/lib/systemd/system/tizen-boot.target
/usr/lib/systemd/system/tizen-system.target
/usr/lib/systemd/system/tizen-runtime.target

Change-Id: I5d56f00b6c337284cc142a82cfc1883cb7dea207
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoservice: apply tizen-generate-env.service file.
Sooyoung Ha [Thu, 19 Jun 2014 13:31:17 +0000 (22:31 +0900)]
service: apply tizen-generate-env.service file.

This file is needed by other services. This was deleted
because of conflict with tizen-mobile-session package,
but tizen-mobile-session package doesn't be installed on
kiran image. So this service file should be in
system-plugin-emulator package.

Change-Id: I76763a87f7d7c1a52b329821309d0fa19d68a4fe
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoapply tizen_2.3 base files.
Sooyoung Ha [Fri, 13 Jun 2014 05:29:50 +0000 (14:29 +0900)]
apply tizen_2.3 base files.

Change-Id: I5359ee95d6ef53d1375ca0ffcbf34d59919b0c1c
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
9 years agoDon't use mouse on Tizen IVI emulator 93/22693/1
Dongxing Liu [Tue, 10 Jun 2014 07:14:29 +0000 (15:14 +0800)]
Don't use mouse on Tizen IVI emulator

Weston uses all input devices that are not assigned
a particular seat or assigned seat0, by assigning
emulator mouse device to seat1 we're excluding it
from weston input devices.

Change-Id: I79e9827a4ad7a7b649c2725ee70c6d2ef1aec14f
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
9 years agoFix mount configuration in %post 48/22548/1 tizen_3.0.m14.2_ivi accepted/tizen/common/20140610.160608 accepted/tizen/ivi/20140614.134851 accepted/tizen/ivi/20140619.124151 submit/tizen/20140610.111556 submit/tizen_common/20140610.111721 submit/tizen_common/20140610.113616 submit/tizen_common/20140918.063644 submit/tizen_ivi/20140610.132733 submit/tizen_ivi/20140918.063638 tizen_3.0.m14.2_ivi_release
Rafal Krypa [Thu, 5 Jun 2014 16:05:50 +0000 (18:05 +0200)]
Fix mount configuration in %post

This package used to add three entries to /etc/fstab:

1. Bind mount of /opt/var to /var.
On Common it breaks the system, because /opt/var exists and contains only
few files. On IVI it's useless, because /opt/var doesn't exist.
On Mobile /opt/var is a hardlink to /opt, so it does nothing.
Removing this mount config.

2. Tmpfs mount for /tmp
This is useless on all profiles, because systemd already does that. And it
does it better, because it specifies more options, like Smack label.
Removing this mount config.

3. Swap on /dev/vdb
This works OK. for Common and Mobile. But IVI comes with no /etc/fstab, so
it doesn't get the swap.
Converting this mount config to systemd unit file.

Change-Id: Ic401f5ccb438fe2c17490247c6ef269de7820e13
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
9 years agoremove sshd.service since sshd package has included the service file. 28/22528/1
Rafal Krypa [Thu, 5 Jun 2014 09:15:24 +0000 (11:15 +0200)]
remove sshd.service since sshd package has included the service file.

This also fixes a problem with system-plugin-emulator and openssh. Currently
They conflict, because both provide sshd.service for systemd. But the service
file from this package is broken. It just runs /etc/init.d/ssh, but without
openssh package, this file doesn't exist.

This change re-enables working sshd when system-plugin-emulator is installed.

Change-Id: Ifd3671128549b18f7f3b92b92c9bb0f3346db65b
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
9 years agoInitialize Tizen 2.3
Sehong Na [Sat, 31 May 2014 04:01:05 +0000 (13:01 +0900)]
Initialize Tizen 2.3

9 years agofilesystem: modified model-config.sh 48/21648/2 submit/tizen_common/20140529.181337
GiWoong Kim [Mon, 26 May 2014 05:18:39 +0000 (14:18 +0900)]
filesystem: modified model-config.sh

remove hard-coded value

Change-Id: I230053116f80fc4dfb68f334eff5ef74bc526d67
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agofilesystem: remove rc.sysinit script and modify udev rule. 64/19764/3
Sooyoung Ha [Thu, 17 Apr 2014 10:32:10 +0000 (19:32 +0900)]
filesystem: remove rc.sysinit script and modify udev rule.

remove filesystem/etc/rc.d/rc.sysinit file's contents include chown command.
modify filesystem/usr/lib/udev/rules.d/95-tizen-emulator.rules file.

Change-Id: Ife9f0853c2b0a07417414913af3caf99687ad6b5
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
10 years agoremove sdbd.service since sdbd package has included the service file. 53/12853/1
Kitae Kim [Fri, 11 Oct 2013 13:24:01 +0000 (22:24 +0900)]
remove sdbd.service since sdbd package has included the service file.

Conflicts:

packaging/system-plugin-emulator.changes
packaging/system-plugin-emulator.spec

Change-Id: Iccd9061aa260117fe3644ec4eaa0dea1f8d2f8ab
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
10 years agoproxy: add no_proxy 58/12558/1
munkyu.im [Tue, 19 Nov 2013 05:22:53 +0000 (14:22 +0900)]
proxy: add no_proxy

ignored 10.0.2.x, 127.0.0.x by default.
They are pre-allocated address range.

Change-Id: I4a0b452328145b2ceb409aed37faff30d3ae9e66
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
10 years agoFix a RPM packaging error. 98/11998/2
SeokYeon Hwang [Mon, 11 Nov 2013 02:02:23 +0000 (11:02 +0900)]
Fix a RPM packaging error.

Modify group to "System/configuration".

Change-Id: Ibfeae19409c2ce699bf50f89d32d72004b0e706d
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoproxy: append protocol prefix when export variables 87/11887/1
munkyu.im [Thu, 7 Nov 2013 08:40:46 +0000 (17:40 +0900)]
proxy: append protocol prefix when export variables

http_proxy=http://{address}:{port}
https_proxy=https://{address}:{port}
ftp_proxy=:ftp//{address}:{port}
socks_proxy=socks://{address}:{port}

Change-Id: I9d6227a4cdd5eeba955f4351d5d6cb2491f7aab6
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
10 years agoInitial empty repository
Newton Lee [Wed, 6 Nov 2013 07:52:30 +0000 (16:52 +0900)]
Initial empty repository

10 years agomodified model-config.sh 55/11655/1
GiWoong Kim [Fri, 1 Nov 2013 06:11:51 +0000 (15:11 +0900)]
modified model-config.sh

1. modified the resolution parser in script
2. added FHD value editing

Change-Id: Ib6f4db8d1dadfdc9865bdd1d7f54d7431a08b98b
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
10 years agoModify permisson for ESM device node. 01/11301/1
SeokYeon Hwang [Thu, 24 Oct 2013 03:52:56 +0000 (12:52 +0900)]
Modify permisson for ESM device node.

Change-Id: I0e8ccb83e7d2ed5127f1c3a9be624d5b0b81f8f5
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
10 years agoMerge rc.shutdown 'system-plugin-slp' into emulator 77/10777/1
GiWoong Kim [Fri, 11 Oct 2013 10:09:32 +0000 (19:09 +0900)]
Merge rc.shutdown 'system-plugin-slp' into emulator

Change-Id: I11320cd246bed727e4facb13f2f7bdc496f323fc
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>