Add case for resolv.conf and buster sources.

buster sources.list naming is different from other releases.

without systemd we use connman and provide a link to resolv.conf
This commit is contained in:
cyteen 2024-05-11 17:00:08 +01:00
parent a678f44964
commit d45fa9a629
1 changed files with 21 additions and 12 deletions

View File

@ -98,7 +98,7 @@ devuan)
--verbose \
--variant=minbase \
--foreign \
--include=netbase,net-tools,sysvinit,u-boot-tools,initramfs-tools,openssh-server,vim-tiny \
--include=netbase,net-tools,sysvinit,u-boot-tools,initramfs-tools,openssh-server,nano,vim-tiny \
"${TARGET}" \
debian \
"${URL}" \
@ -147,7 +147,7 @@ debian-*)
deb-src http://security.debian.org/debian-security ${DIST}-security main
EOF
;;
devuan-*-ceres | devuan-*-unstable | devuan-*-experimental)
devuan-*-ceres | devuan-*-unstable)
# https://pkginfo.devuan.org/sources.list.txt
tee debian/tmp/sources.list <<-EOF
deb http://deb.devuan.org/merged ${DIST} main
@ -164,6 +164,16 @@ devuan-*)
deb-src http://deb.devuan.org/merged ${DIST}-security main
EOF
;;
devuan-*-buster)
tee debian/tmp/sources.list <<-EOF
deb http://deb.devuan.org/merged ${DIST} main
deb-src http://deb.devuan.org/merged ${DIST} main
deb http://deb.devuan.org/merged ${DIST}-updates main
deb-src http://deb.devuan.org/merged ${DIST}-updates main
deb http://deb.devuan.org/merged ${DIST} main
deb-src http://deb.devuan.org/merged ${DIST} main
EOF
;;
ubuntu-amd64-*)
tee debian/tmp/sources.list <<-EOF
deb http://archive.ubuntu.com/ubuntu ${DIST} main universe
@ -257,16 +267,15 @@ cp -rv --preserve=mode ../2nd-stage-files/post-2nd-stage-files/* debian
echo "${OS}" >debian/etc/hostname
# Set resolv.conf
case "${OS}" in:
debian | ubuntu)
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf
;;
devuan)
ln -sf /run/connman/resolv.conf debian/etc/resolv.conf
;;
*)
;;
esac
case "${OS}" in
debian | ubuntu)
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf
;;
devuan)
ln -sf /run/connman/resolv.conf debian/etc/resolv.conf
;;
*) ;;
esac
# List all files
find debian ! -type d -printf "/%P\n" | sort >files.txt