rpm-postinsts: don't create broken postinst script
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 10 Apr 2013 11:21:01 +0000 (11:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Apr 2013 15:49:24 +0000 (16:49 +0100)
commita2c04bbd65b51edcbfac27ed2433ac87ffa91c48
treeb21015920bb054ac2bb6893a0ce117f922aea101
parent0a81594471e64435d79cbccb3fd5c6518c3abfef
rpm-postinsts: don't create broken postinst script

Not only was the variable reference in this line broken, but it wasn't
going to work anyway - we install the script directly into /etc/rcS.d
and not into /etc/init.d, so the code in update-rc.d.bbclass couldn't
find anything there. This resulted in a postinstall script for
rpm-postinsts being created in /etc/rpm-postinsts which can't work when
the root filesystem is read-only. To simplify things just remove the use
of update-rc.d.bbclass since we don't really need the added complexity
here.

Fixes [YOCTO #4222].

(From OE-Core rev: d196d08acafe599c16a7ac8e04121039b1216ba6)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm-postinsts.bb