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 erlang slices #394

Merged
merged 12 commits into from
Nov 22, 2024
8 changes: 7 additions & 1 deletion slices/coreutils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ slices:

bins:
essential:
- coreutils_env
- coreutils_expr
- coreutils_libs
- coreutils_mkdir
Expand Down Expand Up @@ -49,7 +50,6 @@ slices:
/usr/bin/dirname:
/usr/bin/du:
/usr/bin/echo:
/usr/bin/env:
/usr/bin/expand:
/usr/bin/factor:
/usr/bin/false:
Expand Down Expand Up @@ -129,6 +129,12 @@ slices:
/usr/bin/yes:
/usr/sbin/chroot:

env:
linostar marked this conversation as resolved.
Show resolved Hide resolved
essential:
- libc6_libs
contents:
/usr/bin/env:

expr:
essential:
- libc6_libs
Expand Down
3 changes: 1 addition & 2 deletions slices/erlang-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ slices:
bins:
essential:
- bash_bins
- coreutils_bins
- coreutils_env
- erlang-base_modules
- libc6_libs
- libgcc-s1_libs
- libreadline8t64_libs
- libstdc++6_libs
- libsystemd0_libs
- libtinfo6_libs
Expand Down
3 changes: 0 additions & 3 deletions tests/spread/integration/erlang/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ execute: |
cp /etc/resolv.conf "$rootfs"/etc/
cp /etc/nsswitch.conf "$rootfs"/etc/
touch "$rootfs"/dev/null
chmod 777 "$rootfs"/dev/null
echo "cookie" > "$rootfs"/root/.erlang.cookie
chroot "$rootfs" chmod 400 /root/.erlang.cookie

# test epmd daemon
chroot "$rootfs" /usr/bin/epmd -daemon
Expand All @@ -39,7 +37,6 @@ execute: |
# test escript by executing a simple script
echo '#!/usr/bin/escript' > test_script
echo 'main(_) -> io:format("escript OK~n").' >> test_script
chmod +x test_script
mv test_script "$rootfs"
chroot "$rootfs" /usr/bin/escript test_script

Expand Down
Loading