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

Add slices for bash and coreutils #61

Merged
merged 9 commits into from
Sep 29, 2023
Merged
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
21 changes: 21 additions & 0 deletions slices/bash.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package: bash

slices:
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
config:
contents:
/etc/bash.bashrc:
/etc/skel/.bash_logout:
/etc/skel/.bashrc:
/etc/skel/.profile:

bins:
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
essential:
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
- bash_config
- libc6_libs
- libtinfo6_libs
contents:
# user should manually link /bin/sh to /bin/bash
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
/bin/bash:
/bin/rbash:
/usr/bin/clear_console:
/usr/bin/bashbug:
127 changes: 127 additions & 0 deletions slices/coreutils.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
package: coreutils

slices:
libs:
essential:
- libc6_libs
contents:
/usr/libexec/coreutils/libstdbuf.so:

bins:
essential:
- coreutils_libs
- libacl1_libs
- libattr1_libs
- libc6_libs
- libcrypt1_libs
- libgcc-s1_libs
- libgmp10_libs
- libpcre2-8-0_libs
- libselinux1_libs
contents:
/bin/cat:
/bin/chgrp:
/bin/chmod:
/bin/chown:
/bin/cp:
/bin/date:
/bin/dd:
/bin/df:
/bin/dir:
/bin/echo:
/bin/false:
/bin/ln:
/bin/ls:
/bin/mkdir:
/bin/mknod:
/bin/mktemp:
/bin/mv:
/bin/pwd:
/bin/readlink:
/bin/rm:
/bin/rmdir:
/bin/sleep:
/bin/stty:
/bin/sync:
/bin/touch:
/bin/true:
/bin/uname:
/bin/vdir:
/usr/bin/[:
/usr/bin/arch:
/usr/bin/b2sum:
/usr/bin/base32:
/usr/bin/base64:
/usr/bin/basename:
/usr/bin/basenc:
/usr/bin/chcon:
/usr/bin/cksum:
/usr/bin/comm:
/usr/bin/csplit:
/usr/bin/cut:
/usr/bin/dircolors:
/usr/bin/dirname:
/usr/bin/du:
/usr/bin/env:
/usr/bin/expand:
/usr/bin/expr:
/usr/bin/factor:
/usr/bin/fmt:
/usr/bin/fold:
/usr/bin/groups:
/usr/bin/head:
/usr/bin/hostid:
/usr/bin/id:
/usr/bin/install:
/usr/bin/join:
/usr/bin/link:
/usr/bin/logname:
/usr/bin/md5sum:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/usr/bin/md5sum.textutils seems to be missing.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, thanks!

/usr/bin/md5sum.textutils:
/usr/bin/mkfifo:
/usr/bin/nice:
/usr/bin/nl:
/usr/bin/nohup:
/usr/bin/nproc:
/usr/bin/numfmt:
/usr/bin/od:
/usr/bin/paste:
/usr/bin/pathchk:
/usr/bin/pinky:
/usr/bin/pr:
/usr/bin/printenv:
/usr/bin/printf:
/usr/bin/ptx:
/usr/bin/realpath:
/usr/bin/runcon:
/usr/bin/seq:
/usr/bin/sha1sum:
/usr/bin/sha224sum:
/usr/bin/sha256sum:
/usr/bin/sha384sum:
/usr/bin/sha512sum:
/usr/bin/shred:
/usr/bin/shuf:
/usr/bin/sort:
/usr/bin/split:
/usr/bin/stat:
/usr/bin/stdbuf:
/usr/bin/sum:
/usr/bin/tac:
/usr/bin/tail:
/usr/bin/tee:
/usr/bin/test:
/usr/bin/timeout:
/usr/bin/tr:
/usr/bin/truncate:
/usr/bin/tsort:
/usr/bin/tty:
/usr/bin/unexpand:
/usr/bin/uniq:
/usr/bin/unlink:
/usr/bin/users:
/usr/bin/wc:
/usr/bin/who:
/usr/bin/whoami:
/usr/bin/yes:
/usr/sbin/chroot:
8 changes: 8 additions & 0 deletions slices/libacl1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package: libacl1

slices:
libs:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libacl.so.1*:
13 changes: 13 additions & 0 deletions slices/libattr1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package: libattr1

slices:
cjdcordeiro marked this conversation as resolved.
Show resolved Hide resolved
config:
contents:
/etc/xattr.conf:

libs:
essential:
- libattr1_config
- libc6_libs
contents:
/usr/lib/*-linux-*/libattr.so.1*:
9 changes: 9 additions & 0 deletions slices/libtinfo6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package: libtinfo6

slices:
libs:
essential:
- libc6_libs
contents:
/lib/*-linux-*/libtinfo.so.6*:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should add /usr/lib/*-linux-*/libtic.so.6* as done in https://github.com/canonical/chisel-releases/blob/ubuntu-20.04/slices/libtinfo6.yaml.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, indeed, added, thanks!

/usr/lib/*-linux-*/libtic.so.6*: