]> code.ossystems Code Review - openembedded-core.git/commitdiff
extrausers.bbclass: drop retry count for perform_user/group* calls
authorMark Asselstine <mark.asselstine@windriver.com>
Fri, 8 Apr 2016 21:46:26 +0000 (17:46 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Apr 2016 06:49:52 +0000 (07:49 +0100)
Commit 2ebf697b46c42cee8bfa6d2e6087397f8cce385c [useradd_base.bbclass:
replace retry logic with flock] dropped the 3rd (retry) parameter for
these functions. These are simply being ignored now but we should
remove the retry count to avoid confusion.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/extrausers.bbclass

index faf57b108e52865f2e4ac827526021b27bd6c2ca..43900f359d53d245c16de025a149b7628a851d82 100644 (file)
@@ -33,22 +33,22 @@ set_user_group () {
                # this setting is actually a serial process. So we only retry once.
                case $cmd in
                        useradd)
-                               perform_useradd "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_useradd "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        groupadd)
-                               perform_groupadd "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_groupadd "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        userdel)
-                               perform_userdel "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_userdel "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        groupdel)
-                               perform_groupdel "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_groupdel "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        usermod)
-                               perform_usermod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_usermod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        groupmod)
-                               perform_groupmod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts" 1
+                               perform_groupmod "${IMAGE_ROOTFS}" "-R ${IMAGE_ROOTFS} $opts"
                                ;;
                        *)
                                bbfatal "Invalid command in EXTRA_USERS_PARAMS: $cmd"