Skip to content

Commit

Permalink
desparation
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored May 6, 2024
1 parent 3f38d95 commit e575961
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: |
rm -rf /var/lib/apt/lists/*
sed -i 's/jammy/noble/g' /etc/apt/sources.list
apt-get update && apt-get install --reinstall sudo debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev curl -y
apt-get update && apt-get install --reinstall sudo debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev bubblewrap curl -y
ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble
dpkg -i debs/live-build_*_all.deb
mv /usr/share/debootstrap/functions functions
Expand All @@ -52,11 +52,25 @@ jobs:
- name: Examine bwrap situation
run: |
curl -fsSL https://pacstall.dev/q/install\?dnt > pacstall-install.sh || curl -fsSL https://git.io/JsADh > pacstall-install.sh
chmod +x ./pacstall-install.sh
echo N\n | sudo -E ./pacstall-install.sh
rm ./pacstall-install.sh
pacstall -PI nala-deb
echo '#!/bin/bash
bwrap --dev-bind "$1" / \
--proc /proc \
--dev /dev \
--tmpfs /tmp \
--ro-bind /usr /usr \
--ro-bind /bin /bin \
--ro-bind /lib /lib \
--ro-bind /lib64 /lib64 \
--ro-bind /etc /etc \
--symlink usr/lib /lib \
--symlink usr/bin /bin \
--symlink usr/lib64 /lib64 \
--dir /home \
--dir /root \
--chdir / \
/bin/bash' >> bwrap.sh
chmod +x bwrap.sh
cp bwrap.sh /usr/sbin/chroot
- name: Make scripts executable
run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/
Expand Down

0 comments on commit e575961

Please sign in to comment.