Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
decoyjoe committed Nov 28, 2024
1 parent cfb5d0b commit 0e46350
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
- run: ./init.sh
- run: ./build.sh
- run: |
echo '/etc/binfmt.d/'
ls -l /etc/binfmt.d/
echo ''
echo '/proc/sys/fs/binfmt_misc/'
ls -l /proc/sys/fs/binfmt_misc/
for file in /proc/sys/fs/binfmt_misc/*; do
if [[ $(basename "$file") == "register" || $(basename "$file") == "status" ]]; then
continue
fi
echo $file
sudo cat $file
echo ''
done
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/cli' # remove Ubuntu's MZ interpreter
# sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/status' # remove ALL binfmt_misc entries
# sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
ls -l /proc/sys/fs/binfmt_misc/
for file in /proc/sys/fs/binfmt_misc/*; do
if [[ $(basename "$file") == "register" || $(basename "$file") == "status" ]]; then
continue
fi
echo $file
sudo cat $file
echo ''
done
# ./build.sh
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ echo 'Downloading necessary modules...'

# Perl build dependency
# https://metacpan.org/dist/Module-Build
wget https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-0.4234.tar.gz
wget -q https://cpan.metacpan.org/authors/id/L/LE/LEONT/Module-Build-0.4234.tar.gz

# Sanoid dependency
# https://metacpan.org/dist/Config-IniFiles
wget https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-3.000003.tar.gz
wget -q https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Config-IniFiles-3.000003.tar.gz

# Sanoid dependency
## https://metacpan.org/dist/Capture-Tiny
wget https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz
wget -q https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-0.48.tar.gz

echo 'Cloning sanoid repository...'
rm -rf sanoid_source
Expand All @@ -47,7 +47,7 @@ popd > /dev/null
echo ''

echo 'Downloading APPerl (Actually Portable Perl)...'
wget -O perl.com "https://github.com/G4Vi/Perl-Dist-APPerl/releases/download/v${APPERL_VERSION}/perl.com"
wget -q -O perl.com "https://github.com/G4Vi/Perl-Dist-APPerl/releases/download/v${APPERL_VERSION}/perl.com"
chmod u+x perl.com

echo 'APPerl (perl.com) SHA-256 checksum:'
Expand Down

0 comments on commit 0e46350

Please sign in to comment.