Skip to contentSkip to conversation

lvm2: files will be over written when updating using rpm

meta-oe Jian Liu 2 participants 2 messages Nov 18, 2014 – Nov 19, 2014

lore
Share & tools
lore

Jian Liu

author
#0 lore raw

If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm.
This will make our settings lost.

---
 recipes-support/lvm2/lvm2.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-support/lvm2/lvm2.inc +2 -0
index 1bbb158..42f6e3a 100644
@@ -48,3 +48,5 @@ FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
 FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
 
 RDEPENDS_${PN} = "bash"
+
+CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
Signature · 1 line
1.8.5.2.233.g932f7e4
#1 lore raw
Quoted 4 lines · Jian Liu

If there is no %config micro before the file in the spec file, this file will be over-written after updating this package using rpm.
This will make our settings lost.

This isn't for meta-oe (missing meta-oe/ directory prefix)

Quoted 23 lines
---
 recipes-support/lvm2/lvm2.inc | 2 ++
 1 file changed, 2 insertions(+)
recipes-support/lvm2/lvm2.inc +2 -0
index 1bbb158..42f6e3a 100644
@@ -48,3 +48,5 @@ FILES_${PN} += "${libdir}/device-mapper/*.so ${base_libdir}/udev"
 FILES_${PN}-dbg += "${libdir}/device-mapper/.debug"
 
 RDEPENDS_${PN} = "bash"
+
+CONFFILES_${PN} += "${sysconfdir}/lvm/lvm.conf"
Signature · 7 lines
1.8.5.2.233.g932f7e4

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]