diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2017-09-14 01:10:09 -0700 |
|---|---|---|
| committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-10-11 16:22:49 -0400 |
| commit | 1723fb3e03680ddb22a5dcc027174aaf3f268e73 (patch) | |
| tree | 668df6681bba2ac03fdfd9116db6017edd266ab0 /meta-networking/recipes-support/drbd/drbd-utils | |
| parent | b8210ddacc6bf380f518ee759b51efae581bb2a9 (diff) | |
| download | meta-openembedded-1723fb3e03680ddb22a5dcc027174aaf3f268e73.tar.gz | |
drbd-utils: remove 0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch
It is already in the source, fixed do_patch failure:
Patch 0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch is already applied; check your series file
ERROR: drbd-utils-8.9.6-r0 do_patch: Function failed: patch_do_patch
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-support/drbd/drbd-utils')
| -rw-r--r-- | meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch b/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch deleted file mode 100644 index add0b030cf..0000000000 --- a/meta-networking/recipes-support/drbd/drbd-utils/0001-drbd-8.4.4-drbd-tools-only-rmmod-if-DRBD-is-a-module.patch +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | Subject: drbd-tools: only rmmod if DRBD is a module | ||
| 2 | |||
| 3 | Account for the case if the DRBD drive is built into | ||
| 4 | the kernel. Otherwise, errors, like the following, | ||
| 5 | will occur: | ||
| 6 | |||
| 7 | root@localhost:~# /etc/init.d/drbd stop | ||
| 8 | Stopping all DRBD resources: ERROR: Module drbd does not exist in | ||
| 9 | /proc/modules | ||
| 10 | |||
| 11 | Signed-off-by: Aws Ismail <aws.ismail@windriver.com> | ||
| 12 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
| 13 | |||
| 14 | [ refresh to 8.4.4: squash Aws' and Jason's patches ] | ||
| 15 | Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com> | ||
| 16 | |||
| 17 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
| 18 | --- | ||
| 19 | scripts/drbd | 4 +++- | ||
| 20 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/scripts/drbd b/scripts/drbd | ||
| 23 | index 20bf628..de589dc 100755 | ||
| 24 | --- a/scripts/drbd | ||
| 25 | +++ b/scripts/drbd | ||
| 26 | @@ -241,7 +241,9 @@ case "$1" in | ||
| 27 | if [ -d /sys/module/drbd/holders ]; then | ||
| 28 | (cd /sys/module/drbd/holders; for tr in *; do [ -d ${tr} ] && ${RMMOD} ${tr}; done) | ||
| 29 | fi | ||
| 30 | - $RMMOD drbd && break | ||
| 31 | + if [ ! -z "$(cat /proc/modules | grep -w drbd)" ]; then | ||
| 32 | + $RMMOD drbd && break | ||
| 33 | + fi | ||
| 34 | fi | ||
| 35 | done | ||
| 36 | run_hook stop | ||
| 37 | -- | ||
| 38 | 1.9.1 | ||
| 39 | |||
