Skip to content

Commit

Permalink
Move instead of copying resolv.conf, test with nslookup (fix #38)
Browse files Browse the repository at this point in the history
  • Loading branch information
pguyot committed Jun 6, 2022
1 parent f204b58 commit 4677e2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-partitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ jobs:
commands: |
cat /etc/os-release
uname -a
nslookup github.com
4 changes: 2 additions & 2 deletions mount_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mkdir -p ${mount}
echo "::set-output name=mount::${mount}"
[ ! -d "${mount}" ] && mkdir "${mount}"
mount "${rootdev}" "${mount}"
if [ "x${bootdev}" ]; then
if [ "x${bootdev}" != "x" ]; then
[ ! -d "${mount}/boot" ] && mkdir "${mount}/boot"
mount "${bootdev}" "${mount}/boot"
fi
Expand All @@ -72,7 +72,7 @@ if [ "${use_systemd_nspawn}x" = "x" -o "${use_systemd_nspawn}x" = "nox" ]; then
mount --bind /dev/pts "${mount}/dev/pts"
fi

cp "${mount}/etc/resolv.conf" "${mount}/etc/_resolv.conf"
mv "${mount}/etc/resolv.conf" "${mount}/etc/_resolv.conf"
cp /etc/resolv.conf "${mount}/etc/resolv.conf"
cp /usr/bin/qemu-arm-static0 ${mount}/usr/bin/qemu-arm-static0
cp /usr/bin/qemu-arm-static ${mount}/usr/bin/qemu-arm-static
Expand Down

0 comments on commit 4677e2a

Please sign in to comment.