| Summary: | groupdel -g failed in set_user_group | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Yi Zhao <yi.zhao> | ||||
| Component: | meta-yocto | Assignee: | Chen Qi <Qi.Chen> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Yi Zhao <yi.zhao> | ||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | alexandru.c.georgescu, ke.zou, poky.bs.watcher, poky.watcher, yi.zhao | ||||
| Version: | 1.7 | ||||||
| Target Milestone: | 1.7 M3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||
| Verified: | Documentation change: | Don't know | |||||
| Attachments: |
|
||||||
Hi Yi, As the message shows, '-g' is not a valid option. | groupdel: invalid option -- 'g' | Usage: groupdel [options] GROUP | | Options: | -h, --help display this help message and exit | -R, --root CHROOT_DIR directory to chroot into Or am I missing something? //Chen Qi (In reply to comment #1) > Hi Yi, > > As the message shows, '-g' is not a valid option. > > | groupdel: invalid option -- 'g' > | Usage: groupdel [options] GROUP > | > | Options: > | -h, --help display this help message and exit > | -R, --root CHROOT_DIR directory to chroot into > > Or am I missing something? > > //Chen Qi It used to work before shadow update. If the new groupdel in shadow package doesn't support -g. At least we need to update the local.conf.sample.extended. Patch is avaliable Module: openembedded-core.git Branch: master Commit: 5a09acef73b5cfc59bbcd3e93603c99a8c078bd8 URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5a09acef73b5cfc59bbcd3e93603c99a8c078bd8 Author: Chen Qi <Qi.Chen@windriver.com> Date: Thu Jul 31 16:41:06 2014 +0800 local.conf.sample.extended: fix example for EXTRA_USERS_PARAMS The `groupdel' command doesn't support '-g' option, so remove it. [YOCTO #6575] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
Created attachment 2056 [details] log.do_rootfs Git rev: master/8b7116d25ed6255a03895d835e5a0560858ab496 Steps: 1. Add the following lines in conf/local.conf INHERIT+="extrausers" EXTRA_USERS_PARAMS="useradd -p '' tester1; groupadd developers; userdel games; groupdel -g video; groupmod -g 1020 developers; usermod -s /bin/sh tester1;" 2. Build a sato image The error message: ################### | NOTE: Performing groupdel with [-R /buildarea/jenkins-yocto/workspace/Yocto1.7-user_group_add_remove/build/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/rootfs -g video] and 1 times of retry | groupdel: invalid option -- 'g' | Usage: groupdel [options] GROUP | | Options: | -h, --help display this help message and exit | -R, --root CHROOT_DIR directory to chroot into | | Server refused shutdown. Remaining client fds: 2 | Client pids: 6332 18300 | Server will shut down after all clients exit. | WARNING: groupdel command did not succeed. Retrying... | ERROR: Tried running groupdel command 1 times without scucess, giving up | WARNING: /buildarea/jenkins-yocto/workspace/Yocto1.7-user_group_add_remove/build/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/temp/run.set_user_group.6332:1 exit 1 from | exit 1 | DEBUG: Python function do_rootfs finished | ERROR: Function failed: set_user_group (log file is located at /buildarea/jenkins-yocto/workspace/Yocto1.7-user_group_add_remove/build/tmp/work/qemuppc-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.6332) NOTE: recipe core-image-sato-1.0-r0: task do_rootfs: Failed NOTE: Tasks Summary: Attempted 5158 tasks of which 4415 didn't need to be rerun and 1 failed. ########################## Please check the attachment for the full log.