Skip to content

Commit

Permalink
update: create loop device if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kkalev committed Dec 12, 2023
1 parent 366a696 commit 4e165b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ARG DEBIAN_VERSION=11.8.0
ARG DEBIAN_REPO=https://cdimage.debian.org/mirror/cdimage/archive/${DEBIAN_VERSION}/amd64/iso-cd
ARG DEBIAN_ISO=debian-${DEBIAN_VERSION}-amd64-netinst.iso

RUN curl -L ${DEBIAN_REPO}/${DEBIAN_ISO} > ${JEOS_DIR}/debian/${DEBIAN_ISO}
RUN curl -sL ${DEBIAN_REPO}/${DEBIAN_ISO} > ${JEOS_DIR}/debian/${DEBIAN_ISO}
COPY mkiso.sh helper_functions.sh ${JEOS_DIR}/
COPY gunet/ ${JEOS_DIR}/gunet/

Expand Down
4 changes: 4 additions & 0 deletions mkiso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ fi

sed -i "s/^M//" $PRESEED_DIR/custom_script.sh

if [[ ! -e /dev/loop0 ]]; then
echo 'Creating loop device..'
mknod -m 0660 /dev/loop0 b 7 0
fi
echo 'mounting ISO9660 filesystem...'
# source: http://wiki.debian.org/DebianInstaller/ed/EditIso
[ -d $ISODIR ] || mkdir -p $ISODIR
Expand Down

0 comments on commit 4e165b2

Please sign in to comment.