From 5194d3fa86af5a31a2b3a1bd4c6cbf892ce07701 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Wed, 30 Oct 2013 13:31:14 -0700 Subject: [PATCH] TIVI-2052: Create tizen dbspace directories 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 --- packaging/filesystem.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/filesystem.spec b/packaging/filesystem.spec index e4e45d3..1c2049f 100644 --- a/packaging/filesystem.spec +++ b/packaging/filesystem.spec @@ -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 -- 2.7.4