From 0e46350d4760fa731e44fe978db62ff646a357ca Mon Sep 17 00:00:00 2001 From: Joseph Larionov Date: Wed, 27 Nov 2024 14:10:21 -0800 Subject: [PATCH] wip --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++-- build.sh | 8 ++++---- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 803a2ba..003e6d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/build.sh b/build.sh index e885df3..7c3f583 100755 --- a/build.sh +++ b/build.sh @@ -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 @@ -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:'