Skip to content

Commit b9309e5

Browse files
committed
mount directly
1 parent 8e280c1 commit b9309e5

File tree

3 files changed

+4
-95
lines changed

3 files changed

+4
-95
lines changed

.github/workflows/devel.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
rm -rf /var/lib/apt/lists/*
4141
sed -i 's/jammy/noble/g' /etc/apt/sources.list
42-
apt-get update && apt-get install --reinstall sudo debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev systemd-container -y
42+
apt-get update && apt-get install --reinstall sudo debootstrap mtools dosfstools qemu-user-static binfmt-support dpkg-dev -y
4343
ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/noble
4444
dpkg -i debs/live-build_*_all.deb
4545
mv /usr/share/debootstrap/functions functions
@@ -49,7 +49,6 @@ jobs:
4949
if [[ "${{ matrix.type }}" == "tarball" ]]; then
5050
cp binary_rootfs /usr/lib/live/build/binary_rootfs
5151
fi
52-
cp lb_chroot_devpts /usr/lib/live/build/lb_chroot_devpts
5352
5453
- name: Make scripts executable
5554
run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/

build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ build () {
8080
# LIVE-BUILD BUILD #
8181
#------------------#
8282
"
83+
mkdir -p tmp/$BUILD_ARCH/chroot
84+
mount --bind tmp/$BUILD_ARCH/chroot tmp/$BUILD_ARCH/chroot
8385
lb --force build
86+
umount tmp/$BUILD_ARCH/chroot
8487

8588
echo -e "
8689
#---------------------------#

lb_chroot_devpts

-93
This file was deleted.

0 commit comments

Comments
 (0)