diff options
author | Changqing Li <changqing.li@windriver.com> | 2018-10-15 15:24:11 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-16 20:35:43 +0100 |
commit | 603f808f5994b9033f5c39f6b297ed9885384e3f (patch) | |
tree | d7c5b6f4f2a668d2d55b15b159d5ffeb0fe7e043 /meta/classes | |
parent | 94918d5c58e6a0ca2be4fdc3a5296d8c945b4f16 (diff) | |
download | poky-603f808f5994b9033f5c39f6b297ed9885384e3f.tar.gz |
update-rc.d: add -f into postinst OPT
add -f into postinst OPT to fix run postinst scriptlet fail
problem during do rootfs, while INITSCRIPT_PARAMS set to remove.
+ type update-rc.d
+ '[' -n qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs ']'
+ OPT='-r qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs'
+ update-rc.d -r work/qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs keepalived remove
update-rc.d: work/qemux86_64-poky-linux/core-image-sato/1.0-r0/rootfs/etc/init.d/keepalived exists during rc.d purge (use -f to force)
D: %post(keepalived-1.4.2-r0.core2_64): waitpid(305974) rc 305974 status 100
(From OE-Core rev: 45224526edbe65012a846c066d2b539a360f0c51)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/update-rc.d.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index 06e3b21396..265c4be9d1 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass | |||
@@ -39,9 +39,9 @@ PACKAGE_WRITE_DEPS += "update-rc.d-native" | |||
39 | updatercd_postinst() { | 39 | updatercd_postinst() { |
40 | if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then | 40 | if ${@use_updatercd(d)} && type update-rc.d >/dev/null 2>/dev/null; then |
41 | if [ -n "$D" ]; then | 41 | if [ -n "$D" ]; then |
42 | OPT="-r $D" | 42 | OPT="-f -r $D" |
43 | else | 43 | else |
44 | OPT="-s" | 44 | OPT="-f -s" |
45 | fi | 45 | fi |
46 | update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} | 46 | update-rc.d $OPT ${INITSCRIPT_NAME} ${INITSCRIPT_PARAMS} |
47 | fi | 47 | fi |