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:
parent
a678f44964
commit
d45fa9a629
|
|
@ -98,7 +98,7 @@ devuan)
|
||||||
--verbose \
|
--verbose \
|
||||||
--variant=minbase \
|
--variant=minbase \
|
||||||
--foreign \
|
--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}" \
|
"${TARGET}" \
|
||||||
debian \
|
debian \
|
||||||
"${URL}" \
|
"${URL}" \
|
||||||
|
|
@ -147,7 +147,7 @@ debian-*)
|
||||||
deb-src http://security.debian.org/debian-security ${DIST}-security main
|
deb-src http://security.debian.org/debian-security ${DIST}-security main
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
devuan-*-ceres | devuan-*-unstable | devuan-*-experimental)
|
devuan-*-ceres | devuan-*-unstable)
|
||||||
# https://pkginfo.devuan.org/sources.list.txt
|
# https://pkginfo.devuan.org/sources.list.txt
|
||||||
tee debian/tmp/sources.list <<-EOF
|
tee debian/tmp/sources.list <<-EOF
|
||||||
deb http://deb.devuan.org/merged ${DIST} main
|
deb http://deb.devuan.org/merged ${DIST} main
|
||||||
|
|
@ -164,6 +164,16 @@ devuan-*)
|
||||||
deb-src http://deb.devuan.org/merged ${DIST}-security main
|
deb-src http://deb.devuan.org/merged ${DIST}-security main
|
||||||
EOF
|
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-*)
|
ubuntu-amd64-*)
|
||||||
tee debian/tmp/sources.list <<-EOF
|
tee debian/tmp/sources.list <<-EOF
|
||||||
deb http://archive.ubuntu.com/ubuntu ${DIST} main universe
|
deb http://archive.ubuntu.com/ubuntu ${DIST} main universe
|
||||||
|
|
@ -257,15 +267,14 @@ cp -rv --preserve=mode ../2nd-stage-files/post-2nd-stage-files/* debian
|
||||||
echo "${OS}" >debian/etc/hostname
|
echo "${OS}" >debian/etc/hostname
|
||||||
|
|
||||||
# Set resolv.conf
|
# Set resolv.conf
|
||||||
case "${OS}" in:
|
case "${OS}" in
|
||||||
debian | ubuntu)
|
debian | ubuntu)
|
||||||
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf
|
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf
|
||||||
;;
|
;;
|
||||||
devuan)
|
devuan)
|
||||||
ln -sf /run/connman/resolv.conf debian/etc/resolv.conf
|
ln -sf /run/connman/resolv.conf debian/etc/resolv.conf
|
||||||
;;
|
;;
|
||||||
*)
|
*) ;;
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# List all files
|
# List all files
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue