Skip to content

Commit

Permalink
refactor: sort 'essential' and 'contents'
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Mar 7, 2024
1 parent fc56024 commit 14459bb
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions slices/base-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package: base-files
slices:
base:
essential:
- base-files_etc
- base-files_bin
- base-files_etc
- base-files_home
- base-files_lib
- base-files_tmp
- base-files_var
- base-files_home

etc:
contents:
Expand All @@ -24,8 +24,8 @@ slices:
lib:
contents:
/lib:
/usr/lib/:
/lib64: {arch: [amd64, ppc64el]}
/usr/lib/:
/usr/lib64/: {arch: [amd64, ppc64el]}

tmp:
Expand Down Expand Up @@ -54,8 +54,8 @@ slices:
contents:
/etc/debian_version:
/etc/dpkg/origins/debian:
/etc/dpkg/origins/ubuntu:
/etc/dpkg/origins/default: {symlink: /etc/dpkg/origins/ubuntu}
/etc/dpkg/origins/ubuntu:
/etc/host.conf:
/etc/issue:
/etc/issue.net:
Expand Down
4 changes: 2 additions & 2 deletions slices/base-passwd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package: base-passwd
slices:
data:
contents:
/usr/share/base-passwd/group.master: {until: mutate}
/usr/share/base-passwd/passwd.master: {until: mutate}
/etc/group: {text: FIXME, mutable: true}
/etc/passwd: {text: FIXME, mutable: true}
/usr/share/base-passwd/group.master: {until: mutate}
/usr/share/base-passwd/passwd.master: {until: mutate}
mutate: |
gr = content.read("/usr/share/base-passwd/group.master")
content.write("/etc/group", gr)
Expand Down
4 changes: 2 additions & 2 deletions slices/bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ slices:
contents:
# user should manually link /bin/sh to /bin/bash
/usr/bin/bash:
/usr/bin/rbash:
/usr/bin/clear_console:
/usr/bin/bashbug:
/usr/bin/clear_console:
/usr/bin/rbash:
2 changes: 1 addition & 1 deletion slices/libc6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ slices:

libs:
contents:
/usr/lib*/ld*.so.*:
/usr/lib/*-linux-*/ld*.so.*:
/usr/lib/*-linux-*/libBrokenLocale.so.*:
/usr/lib/*-linux-*/libanl.so.*:
Expand All @@ -27,4 +28,3 @@ slices:
/usr/lib/*-linux-*/librt.so.*:
/usr/lib/*-linux-*/libthread_db.so.*:
/usr/lib/*-linux-*/libutil.so.*:
/usr/lib*/ld*.so.*:
4 changes: 2 additions & 2 deletions slices/libpython3.11-stdlib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ slices:
/usr/lib/python3.11/lib-dynload/_testmultiphase.cpython-311-*-linux-*.so:
/usr/lib/python3.11/lib-dynload/_xxsubinterpreters.cpython-311-*-linux-*.so:
/usr/lib/python3.11/lib-dynload/_xxtestfuzz.cpython-311-*-linux-*.so:
/usr/lib/python3.11/lib-dynload/xxlimited_35.cpython-311-*-linux-*.so:
/usr/lib/python3.11/lib-dynload/xxlimited.cpython-311-*-linux-*.so:
/usr/lib/python3.11/lib-dynload/xxlimited_35.cpython-311-*-linux-*.so:
/usr/lib/python3.11/test/**:
/usr/lib/python3.11/unittest/**:

Expand Down Expand Up @@ -350,8 +350,8 @@ slices:
essential:
- libpython3.11-stdlib_core
contents:
/usr/lib/python3.11/pydoc_data/**:
/usr/lib/python3.11/pydoc.py:
/usr/lib/python3.11/pydoc_data/**:

# Text Processing Services
# https://docs.python.org/3.11/library/text.html
Expand Down
2 changes: 1 addition & 1 deletion slices/libtinfo6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ slices:
essential:
- libc6_libs
contents:
/usr/lib/*-linux-*/libtinfo.so.6*:
/usr/lib/*-linux-*/libtic.so.6*:
/usr/lib/*-linux-*/libtinfo.so.6*:
2 changes: 1 addition & 1 deletion slices/libunwind8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ slices:
- liblzma5_libs
contents:
/usr/lib/*-linux-*/libunwind-*.so.*:
/usr/lib/*-linux-*/libunwind.so.8.*:
/usr/lib/*-linux-*/libunwind.so.8:
/usr/lib/*-linux-*/libunwind.so.8.*:
2 changes: 1 addition & 1 deletion slices/openssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package: openssl
slices:
bins:
essential:
- libc6_libs
- libc6_config
- libc6_libs
- libssl3_libs
- openssl_config
- openssl_data
Expand Down
2 changes: 1 addition & 1 deletion slices/python3.11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ slices:
# It includes very few modules from the libpython3.11-stdlib package.
core:
essential:
- python3.11-minimal_bins
- libpython3.11-stdlib_core
- media-types_data
- python3.11-minimal_bins

# The "standard" slice extends "core" with all the Python
# modules from the libpython3.11-stdlib package.
Expand Down
10 changes: 5 additions & 5 deletions slices/tzdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ slices:
/usr/share/zoneinfo/EST5EDT:
/usr/share/zoneinfo/Factory:
/usr/share/zoneinfo/HST:
/usr/share/zoneinfo/iso3166.tab:
/usr/share/zoneinfo/leap-seconds.list:
/usr/share/zoneinfo/leapseconds:
/usr/share/zoneinfo/localtime:
/usr/share/zoneinfo/MET:
/usr/share/zoneinfo/MST:
/usr/share/zoneinfo/MST7MDT:
/usr/share/zoneinfo/PST8PDT:
/usr/share/zoneinfo/tzdata.zi:
/usr/share/zoneinfo/WET:
/usr/share/zoneinfo/iso3166.tab:
/usr/share/zoneinfo/leap-seconds.list:
/usr/share/zoneinfo/leapseconds:
/usr/share/zoneinfo/localtime:
/usr/share/zoneinfo/tzdata.zi:

africa:
essential:
Expand Down

0 comments on commit 14459bb

Please sign in to comment.