Compare commits
No commits in common. "eddf355dda26991d74ac97821c0f036658b4b016" and "63518757a439deb57820b1d3eff3b94832828bbf" have entirely different histories.
eddf355dda
...
63518757a4
|
|
@ -1,31 +0,0 @@
|
||||||
OS,Dist,Arch,Name,Exp
|
|
||||||
debian,bullseye,armhf,"Debian oldstable/11.9 (""bullseye"")",False
|
|
||||||
debian,bullseye,arm64,"Debian oldstable/11.9 (""bullseye"")",False
|
|
||||||
debian,bookworm,armhf,"Debian stable/12.5 (""bookworm"")",False
|
|
||||||
debian,bookworm,arm64,"Debian stable/12.5 (""bookworm"")",False
|
|
||||||
debian,trixie,armhf,"Debian testing (""trixie"")",False
|
|
||||||
debian,trixie,arm64,"Debian testing (""trixie"")",False
|
|
||||||
debian,sid,armhf,"Debian unstable (""sid"")",False
|
|
||||||
debian,sid,arm64,"Debian unstable (""sid"")",False
|
|
||||||
debian,experimental,armhf,"Debian experimental (""rc-buggy"")",True
|
|
||||||
debian,experimental,arm64,"Debian experimental (""rc-buggy"")",True
|
|
||||||
devuan,ceres,armhf,"Devuan unstable/1.0.0 (""ceres"")",False
|
|
||||||
devuan,ceres,arm64,"Devuan unstable/1.0.0 (""ceres"")",False
|
|
||||||
devuan,beowulf,armhf,"Devuan oldoldstable/3.0 (""beowulf"")",False
|
|
||||||
devuan,beowulf,arm64,"Devuan oldoldstable/3.0 (""beowulf"")",False
|
|
||||||
devuan,chimaera,armhf,"Devuan oldstable/4.0 (""chimaera"")",False
|
|
||||||
devuan,chimaera,arm64,"Devuan oldstable/4.0 (""chimaera"")",False
|
|
||||||
devuan,daedalus,armhf,"Devuan stable/5.0 (""daedalus"")",False
|
|
||||||
devuan,daedalus,arm64,"Devuan stable/5.0 (""daedalus"")",False
|
|
||||||
devuan,excalibur,armhf,"Devuan testing/6.0 (""excalibur"")",False
|
|
||||||
devuan,excalibur,arm64,"Devuan testing/6.0 (""excalibur"")",False
|
|
||||||
ubuntu,focal,armhf,"Ubuntu 20.04 LTS (""focal"")",False
|
|
||||||
ubuntu,focal,arm64,"Ubuntu 20.04 LTS (""focal"")",False
|
|
||||||
ubuntu,jammy,armhf,"Ubuntu 22.04 LTS (""jammy"")",False
|
|
||||||
ubuntu,jammy,arm64,"Ubuntu 22.04 LTS (""jammy"")",False
|
|
||||||
ubuntu,mantic,armhf,"Ubuntu 23.10 (""mantic"")",False
|
|
||||||
ubuntu,mantic,arm64,"Ubuntu 23.10 (""mantic"")",False
|
|
||||||
ubuntu,noble,armhf,"Ubuntu 24.04 LTS (""noble"")",False
|
|
||||||
ubuntu,noble,arm64,"Ubuntu 24.04 LTS (""noble"")",False
|
|
||||||
ubuntu,oracular,armhf,"Ubuntu 24.10 (""oracular"")",True
|
|
||||||
ubuntu,oracular,arm64,"Ubuntu 24.10 (""oracular"")",True
|
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
OS,Dist,Arch,Name,Exp
|
|
||||||
debian,bullseye,i386,"Debian oldstable/11.9 (""bullseye"")",False
|
|
||||||
debian,bullseye,amd64,"Debian oldstable/11.9 (""bullseye"")",False
|
|
||||||
debian,bookworm,i386,"Debian stable/12.5 (""bookworm"")",False
|
|
||||||
debian,bookworm,amd64,"Debian stable/12.5 (""bookworm"")",False
|
|
||||||
debian,trixie,i386,"Debian testing (""trixie"")",False
|
|
||||||
debian,trixie,amd64,"Debian testing (""trixie"")",False
|
|
||||||
debian,sid,i386,"Debian unstable (""sid"")",False
|
|
||||||
debian,sid,amd64,"Debian unstable (""sid"")",False
|
|
||||||
debian,experimental,i386,"Debian experimental (""rc-buggy"")",True
|
|
||||||
debian,experimental,amd64,"Debian experimental (""rc-buggy"")",True
|
|
||||||
devuan,ceres,i386,"Devuan unstable/1.0.0 (""ceres"")",False
|
|
||||||
devuan,ceres,amd64,"Devuan unstable/1.0.0 (""ceres"")",False
|
|
||||||
devuan,beowulf,i386,"Devuan oldoldstable/3.0 (""beowulf"")",False
|
|
||||||
devuan,beowulf,amd64,"Devuan oldoldstable/3.0 (""beowulf"")",False
|
|
||||||
devuan,chimaera,i386,"Devuan oldstable/4.0 (""chimaera"")",False
|
|
||||||
devuan,chimaera,amd64,"Devuan oldstable/4.0 (""chimaera"")",False
|
|
||||||
devuan,daedalus,i386,"Devuan stable/5.0 (""daedalus"")",False
|
|
||||||
devuan,daedalus,amd64,"Devuan stable/5.0 (""daedalus"")",False
|
|
||||||
devuan,excalibur,i386,"Devuan testing/6.0 (""excalibur"")",False
|
|
||||||
devuan,excalibur,amd64,"Devuan testing/6.0 (""excalibur"")",False
|
|
||||||
ubuntu,focal,i386,"Ubuntu 20.04 LTS (""focal"")",False
|
|
||||||
ubuntu,focal,amd64,"Ubuntu 20.04 LTS (""focal"")",False
|
|
||||||
ubuntu,jammy,i386,"Ubuntu 22.04 LTS (""jammy"")",False
|
|
||||||
ubuntu,jammy,amd64,"Ubuntu 22.04 LTS (""jammy"")",False
|
|
||||||
ubuntu,mantic,i386,"Ubuntu 23.10 (""mantic"")",False
|
|
||||||
ubuntu,mantic,amd64,"Ubuntu 23.10 (""mantic"")",False
|
|
||||||
ubuntu,noble,i386,"Ubuntu 24.04 LTS (""noble"")",False
|
|
||||||
ubuntu,noble,amd64,"Ubuntu 24.04 LTS (""noble"")",False
|
|
||||||
ubuntu,oracular,i386,"Ubuntu 24.10 (""oracular"")",True
|
|
||||||
ubuntu,oracular,amd64,"Ubuntu 24.10 (""oracular"")",True
|
|
||||||
|
|
|
@ -44,31 +44,6 @@ ubuntu-armhf|ubuntu-arm64)
|
||||||
KERNEL_URL=http://packages.ubuntu.com/"${DIST}"/"${KERNEL}"
|
KERNEL_URL=http://packages.ubuntu.com/"${DIST}"/"${KERNEL}"
|
||||||
SCRIPT=/usr/share/debootstrap/scripts/gutsy
|
SCRIPT=/usr/share/debootstrap/scripts/gutsy
|
||||||
;;
|
;;
|
||||||
devuan-armhf)
|
|
||||||
KERNEL=linux-image-armmp
|
|
||||||
URL=http://deb.devuan.org/merged
|
|
||||||
# 2024-05-01 pkginfo.devuan.org does not have info for armhf.
|
|
||||||
KERNEL_URL=https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
|
|
||||||
SCRIPT=/usr/share/debootstrap/scripts/ceres
|
|
||||||
;;
|
|
||||||
devuan-arm64)
|
|
||||||
KERNEL=linux-image-arm64
|
|
||||||
URL=http://deb.devuan.org/merged
|
|
||||||
KERNEL_URL=https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
|
|
||||||
SCRIPT=/usr/share/debootstrap/scripts/ceres
|
|
||||||
;;
|
|
||||||
devuan-i386)
|
|
||||||
KERNEL=linux-image-686
|
|
||||||
URL=http://deb.devuan.org/merged
|
|
||||||
KERNEL_URL=https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
|
|
||||||
SCRIPT=/usr/share/debootstrap/scripts/ceres
|
|
||||||
;;
|
|
||||||
devuan-amd64)
|
|
||||||
KERNEL=linux-image-amd64
|
|
||||||
URL=http://deb.devuan.org/merged
|
|
||||||
KERNEL_URL=https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=${KERNEL}
|
|
||||||
SCRIPT=/usr/share/debootstrap/scripts/ceres
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "Can't decide kernel package for \"${ARCH}\""
|
echo "Can't decide kernel package for \"${ARCH}\""
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -92,32 +67,23 @@ trap 'rm -rf "${TMP}"' EXIT INT TERM
|
||||||
cd "${TMP}"
|
cd "${TMP}"
|
||||||
|
|
||||||
# Build a Debian root filesystem (first stage)
|
# Build a Debian root filesystem (first stage)
|
||||||
case ${OS} in
|
debootstrap \
|
||||||
debian | ubuntu)
|
|
||||||
debootstrap \
|
|
||||||
--arch="${ARCH}" \
|
--arch="${ARCH}" \
|
||||||
--verbose \
|
--verbose \
|
||||||
--variant=minbase \
|
--variant=minbase \
|
||||||
--foreign \
|
--foreign \
|
||||||
--include=netbase,net-tools,systemd-sysv,u-boot-tools,initramfs-tools,openssh-server,nano \
|
--include=\
|
||||||
|
netbase,\
|
||||||
|
net-tools,\
|
||||||
|
systemd-sysv,\
|
||||||
|
u-boot-tools,\
|
||||||
|
initramfs-tools,\
|
||||||
|
openssh-server,\
|
||||||
|
nano \
|
||||||
"${TARGET}" \
|
"${TARGET}" \
|
||||||
debian \
|
debian \
|
||||||
"${URL}" \
|
"${URL}" \
|
||||||
"${SCRIPT}"
|
"${SCRIPT}"
|
||||||
;;
|
|
||||||
devuan)
|
|
||||||
debootstrap \
|
|
||||||
--arch="${ARCH}" \
|
|
||||||
--verbose \
|
|
||||||
--variant=minbase \
|
|
||||||
--foreign \
|
|
||||||
--include=netbase,net-tools,sysvinit,u-boot-tools,initramfs-tools,openssh-server,nano,vim-tiny \
|
|
||||||
"${TARGET}" \
|
|
||||||
debian \
|
|
||||||
"${URL}" \
|
|
||||||
"${SCRIPT}"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Randomly generated root password
|
# Randomly generated root password
|
||||||
PASSWORD="${PASSWORD_OVERRIDE:-$(pwgen -B -A 6 1)}"
|
PASSWORD="${PASSWORD_OVERRIDE:-$(pwgen -B -A 6 1)}"
|
||||||
|
|
@ -166,23 +132,6 @@ deb http://ports.ubuntu.com/ubuntu-ports ${DIST}-updates main universe
|
||||||
deb-src http://ports.ubuntu.com/ubuntu-ports ${DIST}-updates main universe
|
deb-src http://ports.ubuntu.com/ubuntu-ports ${DIST}-updates main universe
|
||||||
deb http://ports.ubuntu.com/ubuntu-ports ${DIST}-security main universe
|
deb http://ports.ubuntu.com/ubuntu-ports ${DIST}-security main universe
|
||||||
deb-src http://ports.ubuntu.com/ubuntu-ports ${DIST}-security main universe
|
deb-src http://ports.ubuntu.com/ubuntu-ports ${DIST}-security main universe
|
||||||
EOF
|
|
||||||
;;
|
|
||||||
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
|
|
||||||
deb-src http://deb.devuan.org/merged ${DIST} main
|
|
||||||
EOF
|
|
||||||
;;
|
|
||||||
devuan-*)
|
|
||||||
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}-security main
|
|
||||||
deb-src http://deb.devuan.org/merged ${DIST}-security main
|
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
@ -207,10 +156,7 @@ cp -rv --preserve=mode ../2nd-stage-files/pre-2nd-stage-files-${ARCH}/* debian
|
||||||
cp -v /usr/bin/qemu-*-static debian/usr/bin || :
|
cp -v /usr/bin/qemu-*-static debian/usr/bin || :
|
||||||
|
|
||||||
# Build a Debian root filesystem (second stage)
|
# Build a Debian root filesystem (second stage)
|
||||||
case "${OS}" in
|
chroot debian /bin/sh -ex <<- EOF
|
||||||
debian | ubuntu)
|
|
||||||
# Build a Debian root filesystem (second stage)
|
|
||||||
chroot debian /bin/sh -ex <<-EOF
|
|
||||||
/debootstrap/debootstrap --second-stage
|
/debootstrap/debootstrap --second-stage
|
||||||
/bin/mv /tmp/sources.list /etc/apt/sources.list
|
/bin/mv /tmp/sources.list /etc/apt/sources.list
|
||||||
/bin/mv /tmp/priority-experimental /etc/apt/preferences.d/priority-experimental || :
|
/bin/mv /tmp/priority-experimental /etc/apt/preferences.d/priority-experimental || :
|
||||||
|
|
@ -230,28 +176,6 @@ echo "kernel-url,${KERNEL_URL}\n" >> /tmp/versions.csv
|
||||||
/bin/echo "root:${PASSWORD}" | /usr/sbin/chpasswd
|
/bin/echo "root:${PASSWORD}" | /usr/sbin/chpasswd
|
||||||
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
|
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
|
||||||
EOF
|
EOF
|
||||||
;;
|
|
||||||
devuan)
|
|
||||||
# Build a Devuan root filesystem (second stage)
|
|
||||||
chroot debian /bin/sh -ex <<-EOF
|
|
||||||
/debootstrap/debootstrap --second-stage
|
|
||||||
/bin/mv /tmp/sources.list /etc/apt/sources.list
|
|
||||||
# /usr/bin/apt-key add /etc/apt/trusted.gpg.d/devuan_key.gpg
|
|
||||||
/usr/bin/apt-get update
|
|
||||||
/usr/bin/apt-get -y upgrade
|
|
||||||
/usr/bin/apt-get -y --no-install-recommends "${KERNELSUITE}" install "${KERNEL}"
|
|
||||||
/usr/bin/apt-get -y install connman || :
|
|
||||||
/usr/bin/apt-get -y install openntpd || :
|
|
||||||
/usr/bin/apt-get clean
|
|
||||||
/bin/rm -rf /var/lib/apt/lists/*
|
|
||||||
echo "kernel-url,${KERNEL_URL}\n" >> /tmp/versions.csv
|
|
||||||
/usr/bin/dpkg-query --showformat='kernel,\${Version}\n' --show "${KERNEL}" > /tmp/versions.csv
|
|
||||||
/bin/rm -f /var/log/*.log
|
|
||||||
/bin/echo "root:${PASSWORD}" | /usr/sbin/chpasswd
|
|
||||||
/bin/sed -i "s/#*\s*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
|
|
||||||
EOF
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Remove ARM emulation stuff again
|
# Remove ARM emulation stuff again
|
||||||
rm -v debian/usr/bin/qemu-*-static || :
|
rm -v debian/usr/bin/qemu-*-static || :
|
||||||
|
|
@ -262,14 +186,7 @@ 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
|
ln -sf /run/systemd/resolve/stub-resolv.conf debian/etc/resolv.conf
|
||||||
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
|
# List all files
|
||||||
find debian ! -type d -printf "/%P\n" | sort > files.txt
|
find debian ! -type d -printf "/%P\n" | sort > files.txt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue