-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(22.04): add crun and uidmap slices (#222)
--------- Co-authored-by: Rafid Bin Mostofa <[email protected]> Co-authored-by: Cristovao Cordeiro <[email protected]>
- Loading branch information
1 parent
ee14f88
commit c399e84
Showing
11 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package: crun | ||
|
||
essential: | ||
- crun_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- crun_libs | ||
- libc6_libs | ||
- libcap2_libs | ||
- libseccomp2_libs | ||
- libsystemd0_libs | ||
- libyajl2_libs | ||
contents: | ||
/usr/bin/crun: | ||
libs: | ||
contents: | ||
/usr/lib/*-linux-*/libcrun.a: | ||
copyright: | ||
contents: | ||
/usr/share/doc/crun/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package: libaudit-common | ||
|
||
essential: | ||
- libaudit-common_copyright | ||
|
||
slices: | ||
config: | ||
contents: | ||
/etc/libaudit.conf: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libaudit-common/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package: libaudit1 | ||
|
||
essential: | ||
- libaudit1_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libaudit-common_config | ||
- libc6_libs | ||
- libcap-ng0_libs | ||
contents: | ||
/lib/*-linux-*/libaudit.so.1*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libaudit1/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: libcap-ng0 | ||
|
||
essential: | ||
- libcap-ng0_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/lib/*-linux-*/libcap-ng.so.0*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libcap-ng0/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: libcap2 | ||
|
||
essential: | ||
- libcap2_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/lib/*-linux-*/libcap.so.2*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libcap2/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: liblz4-1 | ||
|
||
essential: | ||
- liblz4-1_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/liblz4.so.1*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/liblz4-1/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: libseccomp2 | ||
|
||
essential: | ||
- libseccomp2_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/libseccomp.so.2*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libseccomp2/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package: libsystemd0 | ||
|
||
essential: | ||
- libsystemd0_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
- libcap2_libs | ||
- libgcrypt20_libs | ||
- liblz4-1_libs | ||
- liblzma5_libs | ||
- libzstd1_libs | ||
contents: | ||
/usr/lib/*-linux-*/libsystemd.so.0*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libsystemd0/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package: libyajl2 | ||
|
||
essential: | ||
- libyajl2_copyright | ||
|
||
slices: | ||
libs: | ||
essential: | ||
- libc6_libs | ||
contents: | ||
/usr/lib/*-linux-*/libyajl.so.2*: | ||
copyright: | ||
contents: | ||
/usr/share/doc/libyajl2/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package: uidmap | ||
|
||
essential: | ||
- uidmap_copyright | ||
|
||
slices: | ||
bins: | ||
essential: | ||
- libaudit1_libs | ||
- libc6_libs | ||
- libselinux1_libs | ||
contents: | ||
/usr/bin/newgidmap: | ||
/usr/bin/newuidmap: | ||
copyright: | ||
contents: | ||
/usr/share/doc/uidmap/copyright: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
summary: Integration tests for crun | ||
|
||
execute: | | ||
rootfs="$(install-slices crun_bins)" | ||
# crun needs proc mounted | ||
mkdir "${rootfs}"/proc | ||
mount --bind /proc "${rootfs}"/proc | ||
chroot "$rootfs" crun --help | ||
chroot "$rootfs" crun list | ||
chroot "$rootfs" crun spec | ||
test -f "$rootfs"/config.json |