TIVI-2052: Create tizen dbspace directories 92/11592/1 accepted/tizen/20131030.205133 accepted/tizen/20131105.192051 accepted/tizen/20131112.015113 submit/tizen/20131030.204501
authorRusty Lynch <rusty.lynch@intel.com>
Wed, 30 Oct 2013 20:31:14 +0000 (13:31 -0700)
committerRusty Lynch <rusty.lynch@intel.com>
Wed, 30 Oct 2013 20:36:02 +0000 (13:36 -0700)
There are several middleware packages all racing create the dbspace
directories, and a few that assume that one of the other packages
already created the directories.  This is expressing itself in an
image creation race where the web runtime will sometimes be installed
with a set of critical database files not created.

Since the dbspace directory structure (with /opt/dbspace considered
read-only to all but the preinstalled apps, and /opt/usr/dbspace used
for read-write access) is a fundamental part of the existing tizen
middleware design, then the base filesystem package should be the
thing creating and owning the directores.

Once the new multiuser design has landed then these directories will
likely no longer exist in a shared area.

Change-Id: I0ad7e7f1b8a79a676ddaeb927a844afed9885d9d
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
packaging/filesystem.spec

index e4e45d3..1c2049f 100644 (file)
@@ -46,7 +46,8 @@ mkdir -p boot dev \
         etc/{X11/{applnk,fontpath.d},xdg/autostart,ld.so.conf.d,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki} \
         home media mnt opt/home/{app,developer} proc root run/lock srv sys tmp \
         usr/{bin,etc,games,include,%{_lib}/{pkgconfig,games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{games,locale,modules,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{help/C,aclocal,applications,augeas/lenses,backgrounds,desktop-directories,dict,doc,empty,games,ghostscript/conf.d,gnome,icons,idl,info,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11},src,src/kernels,src/debug} \
-        var/{adm,empty,gopher,lib/{empty,games,misc,rpm-state},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd,uucp},tmp,db,cache,opt,games,yp}
+        var/{adm,empty,gopher,lib/{empty,games,misc,rpm-state},local,lock/subsys,log,nis,preserve,run,spool/{mail,lpd,uucp},tmp,db,cache,opt,games,yp} \
+        opt/{dbspace,usr/dbspace}
 
 ln -snf ../var/tmp usr/tmp
 ln -snf spool/mail var/mail
@@ -125,6 +126,9 @@ posix.symlink("/opt/home/developer", "/home/developer")
 /media
 %dir /mnt
 %dir /opt
+%dir %attr(755,root,root) /opt/dbspace
+%dir %attr(755,root,root) /opt/usr
+%dir %attr(755,root,app) /opt/usr/dbspace
 %attr(555,root,root) /proc
 %attr(550,root,root) /root
 /run