mirror of
https://github.com/optim-enterprises-bv/meta-overc.git
synced 2026-01-13 03:15:17 +00:00
The /var/ dir sometimes are mount on volatile device, which will cause problem, so add an option to change it to a more safe place. To enable it, please add the following line into a conf file. PACKAGECONFIG_append_pn-python-smartpm = " change-data-dir" Signed-off-by: fli <fupan.li@windriver.com> Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
31 lines
860 B
Diff
31 lines
860 B
Diff
From 2ad162ec61883567a48bd83f518fa2e7edfa16e8 Mon Sep 17 00:00:00 2001
|
|
From: fli <fupan.li@windriver.com>
|
|
Date: Wed, 15 Jul 2015 11:00:26 +0800
|
|
Subject: [PATCH] python-smartpm: change the smart data-dir to
|
|
/usr/lib/smart/data-dir
|
|
|
|
The /var/ dir sometimes are mount on volatile device, which will cause
|
|
problem, so add an option to change it to a more safe place.
|
|
|
|
Signed-off-by: fli <fupan.li@windriver.com>
|
|
---
|
|
smart/const.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/smart/const.py b/smart/const.py
|
|
index c63069b..d58ada2 100644
|
|
--- a/smart/const.py
|
|
+++ b/smart/const.py
|
|
@@ -66,7 +66,7 @@ BLOCKSIZE = 16384
|
|
|
|
DISTROFILE = "/usr/lib/smart/distro.py"
|
|
PLUGINSDIR = "/usr/lib/smart/plugins/"
|
|
-DATADIR = "/var/lib/smart/"
|
|
+DATADIR = "/usr/lib/smart/data-dir"
|
|
USERDATADIR = "~/.smart/"
|
|
CONFFILE = "config"
|
|
|
|
--
|
|
1.9.1
|
|
|