Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04) add adduser slice #305

Draft
wants to merge 5 commits into
base: ubuntu-24.04
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions slices/adduser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package: adduser

essential:
- adduser_copyright

slices:
bins:
essential:
- adduser_config
- adduser_modules
- bsdutils_bins
- libperl5.38t64_system-utils
- passwd_bins
- perl-base_bins
- perl-base_modules
contents:
/usr/sbin/addgroup:
/usr/sbin/adduser:
/usr/sbin/delgroup:
/usr/sbin/deluser:

modules:
contents:
/usr/share/perl5/Debian/AdduserCommon.pm:
/usr/share/perl5/Debian/AdduserLogging.pm:
/usr/share/perl5/Debian/AdduserRetvalues.pm:

config:
contents:
/etc/adduser.conf:
/etc/deluser.conf:

copyright:
contents:
/usr/share/doc/adduser/copyright:
10 changes: 10 additions & 0 deletions tests/spread/integration/adduser/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
summary: Integration tests for adduser

execute: |
rootfs="$(install-slices base-files_base adduser_bins)"

chroot "$rootfs" test -f /etc/passwd
chroot "$rootfs" adduser --quiet --system testuser
chroot "$rootfs" grep testuser /etc/passwd
chroot "$rootfs" deluser --quiet testuser
chroot "$rootfs" grep -v testuser /etc/passwd
Loading