diff options
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 999b8a6c86..48133f080b 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -201,11 +201,15 @@ rootfs_check_package_exists() { | |||
201 | } | 201 | } |
202 | 202 | ||
203 | rootfs_install_packages() { | 203 | rootfs_install_packages() { |
204 | # The pkg to be installed here is not controlled by the | ||
205 | # package_install_internal_rpm, so it may have already been | ||
206 | # installed(e.g, installed in the first time when generate the | ||
207 | # rootfs), use '--replacepkgs' to always install them | ||
204 | for pkg in $@; do | 208 | for pkg in $@; do |
205 | ${RPM} --root ${IMAGE_ROOTFS} -D "_dbpath ${rpmlibdir}" \ | 209 | ${RPM} --root ${IMAGE_ROOTFS} -D "_dbpath ${rpmlibdir}" \ |
206 | -D "__dbi_txn create nofsync private" \ | 210 | -D "__dbi_txn create nofsync private" \ |
207 | --noscripts --notriggers --noparentdirs --nolinktos \ | 211 | --noscripts --notriggers --noparentdirs --nolinktos \ |
208 | -Uhv $pkg || true | 212 | --replacepkgs -Uhv $pkg || true |
209 | done | 213 | done |
210 | } | 214 | } |
211 | 215 | ||