diff options
author | Juergen Borleis <jbe@pengutronix.de> | 2019-06-05 14:54:19 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-06-08 10:00:38 +0200 |
commit | 100d91c746bf89a1fc8f27997abab5fc859fa437 (patch) | |
tree | 0bc6162971dc820592de67154cd646de5f6b8185 /projectroot | |
parent | ec3c0a7fe10e8f2b5953f8ff979568bb0d3237f7 (diff) | |
download | ptxdist-100d91c746bf89a1fc8f27997abab5fc859fa437.tar.gz ptxdist-100d91c746bf89a1fc8f27997abab5fc859fa437.tar.xz |
opkg: move opkg-database to a read-only location
The directory tree in '/var/lib' might not be persistent and thus,
not in sync with the root filesystem. In this case it's required
to store the opkg database at a location which has a fixed
relation to the root filesystem's content it describes.
This change moves the opkg's database to a read-only location in
'/usr/share/opkg', which is then always in sync with the root
filesystem's content.
This changed opkg configuration works since commit
a691341deb33077b9d5ede5fe349ee6b3fb99be1
"ptxd_make_image_extract_xpkg_files: use ptxd_get_alternative to find opkg.conf"
Signed-off-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r-- | projectroot/etc/opkg/opkg.conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/projectroot/etc/opkg/opkg.conf b/projectroot/etc/opkg/opkg.conf index 3ba17115b..67a64838f 100644 --- a/projectroot/etc/opkg/opkg.conf +++ b/projectroot/etc/opkg/opkg.conf @@ -6,7 +6,12 @@ @SRC@ dest root / -option lock_file /var/lock/opkg.lock +option lock_file /run/lock/opkg.lock + +# move away the ipkg database from the default "/var/lib/opkg" to a r/o location +option lists_dir /usr/share/opkg/lists +option status_file /usr/share/opkg/status +option info_dir /usr/share/opkg/info arch @ARCH@ 10 arch all 1 |