Depending on the details of what auxiliary groups or user accounts get
made during package installation, it can happen that there are no
non-root accounts or no non-root groups.
This trips up the logic that destroys all of those to present a clean
slate to the user account creation logic done by the entrypoint.
Rephrase the cleanup operation as a loop rather than an xargs to avoid
this.
Depending on the details of what auxiliary groups or user accounts get made during package installation, it can happen that there are no non-root accounts or no non-root groups.
This trips up the logic that destroys all of those to present a clean slate to the user account creation logic done by the entrypoint.
Rephrase the cleanup operation as a loop rather than an xargs to avoid this.
Signed-off-by: Matt Hoosier matt.hoosier@garmin.com