Start port to Debian 12
- qemu installation works - babelbox installation works - system is broken after the first demo installation
This commit is contained in:
parent
7983c85acf
commit
20e2a485ce
5 changed files with 48 additions and 28 deletions
|
@ -1,12 +1,13 @@
|
|||
# Clean up
|
||||
#!/bin/sh
|
||||
|
||||
# Clean up
|
||||
set -e
|
||||
|
||||
apt-get --yes remove dmidecode gcc-8 laptop-detect libc6-dev linux-libc-dev
|
||||
apt-get --yes autoremove
|
||||
apt-get --yes clean
|
||||
|
||||
# Removing leftover leases and persistent rules
|
||||
echo "cleaning up dhcp leases"
|
||||
rm /var/lib/dhcp/*
|
||||
|
||||
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
||||
echo "pre-up sleep 2" >> /etc/network/interfaces
|
||||
# Use systemd-resolved nameserver
|
||||
echo "nameserver 127.0.0.53" > /etc/resolv.conf
|
||||
|
|
|
@ -2,20 +2,43 @@
|
|||
|
||||
set -e
|
||||
|
||||
apt-get install -y git wget
|
||||
FDISK_VERSION=2.38.1-5+b1
|
||||
|
||||
cd /srv
|
||||
wget http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/gtk/initrd.gz http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/gtk/vmlinuz http://ftp.debian.org/debian/pool/main/u/util-linux/fdisk-udeb_2.33.1-0.1_amd64.udeb
|
||||
curl -L -O http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/gtk/initrd.gz
|
||||
curl -L -O http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/hd-media/gtk/vmlinuz
|
||||
curl -L -O http://ftp.debian.org/debian/pool/main/u/util-linux/fdisk-udeb_${FDISK_VERSION}_amd64.udeb
|
||||
mkdir initrd_with_fdisk
|
||||
cd initrd_with_fdisk
|
||||
gunzip -c ../initrd.gz | cpio -id
|
||||
dpkg-deb -x ../fdisk-udeb_2.33.1-0.1_amd64.udeb .
|
||||
dpkg-deb -x ../fdisk-udeb_${FDISK_VERSION}_amd64.udeb .
|
||||
find . | cpio --create --format='newc' | gzip -9 > ../initrd.gz
|
||||
cd ..
|
||||
rm -rf initrd_with_fdisk fdisk-udeb_2.33.1-0.1_amd64.udeb
|
||||
rm -rf initrd_with_fdisk fdisk-udeb_${FDISK_VERSION}_amd64.udeb
|
||||
git clone https://salsa.debian.org/installer-team/babelbox.git
|
||||
cd babelbox
|
||||
cat babelbox-grub >> /etc/grub.d/40_custom
|
||||
update-grub
|
||||
./cronscript
|
||||
|
||||
echo "You need to download a Debian amd64 DVD ISO into /srv"
|
||||
cat > /etc/systemd/network/80-dhcp.network <<EOD
|
||||
[Match]
|
||||
Name=en*
|
||||
|
||||
[Network]
|
||||
DHCP=yes
|
||||
EOD
|
||||
|
||||
systemctl enable systemd-networkd.service
|
||||
|
||||
apt-get install --yes systemd-resolved
|
||||
|
||||
cat >> /home/demo/.bashrc <<EOD
|
||||
DEBIAN_VERSION=12.4.0
|
||||
|
||||
if [ ! -f /srv/debian-\${DEBIAN_VERSION}-amd64-DVD-1.iso ]; then
|
||||
echo "downloading Debian amd64 DVD ISO into /srv"
|
||||
curl -L -O https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-\${DEBIAN_VERSION}-amd64-DVD-1.iso
|
||||
sudo mv debian-\${DEBIAN_VERSION}-amd64-DVD-1.iso /srv/
|
||||
fi
|
||||
EOD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue