[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#367515: Bug#749991: debian-installer: Wrong kernel in debian-installer package




On 28.10.19 15:11, Ben Hutchings wrote:
> On Sun, 2019-10-27 at 20:18 +0100, Holger Wansing wrote:
>> Bugreport against kernel version mismatch, when using outdated or broken 
>> netboot images:

This isn't a package / message  problem, this is a process problem.

The netboot image is not built at the same time as the rest of the
distribution. I.e. the kernel in the main distro changes and the netboot
image still uses the old one.

Even when using a direct url to the netboot image, the netboot image
will fail, using the same package mirror, the netboot image came from.

The CI system that builds the kernel packages needs to (re-)build the
netboot images at the same time.

Here is a shell script that i use for deploying machines with libvirt
and virt-install: (at the moment it works, but after a release its
likley to fail.)

#!/bin/bash

QSTRING="qemu:///system"
if [ -z "${1}" ]; then
  BOXNAME="base-debian-10.sigkill.noexit"
  CACHEMODE=unsafe
else
  HOSTNAME=$(echo $1 | cut -f1 -d.)
  DOMAIN=$(echo $1 | cut -f2- -d.)
  BOXNAME="${HOSTNAME}.${DOMAIN}"
  CACHEMODE=default
fi

if [ -z "${2}" ]; then
  SUITE=${2}
else
  SUITE=stable
fi

virsh --connect $QSTRING list --all | grep $BOXNAME
if [ "$?" == 0 ]; then
  virsh --connect $QSTRING destroy $BOXNAME
  virsh --connect $QSTRING undefine $BOXNAME --remove-all-storage
fi

virt-install \
  --connect $QSTRING \
  --memory 1024 \
  --vcpus 2 \
  --cpu host \
  --disk size=10,pool=vmlandscape,bus=virtio,cache=$CACHEMODE \
  --net network=vmlandscape,model=virtio \
  --os-variant debian8 \
  --os-type linux \
  --name "$BOXNAME" \
  --noautoconsole \
  --console pty,target_type=serial \
  --location
'http://ftp.debian.org/debian/dists/buster/main/installer-amd64/' \
  --extra-args "console=tty0,ttyS0,115200n8 serial auto language=en
country=CH locale=en_GB.UTF-8 keymap=us hostname=$HOSTNAME
domain=$DOMAIN net.ifnames=0 mirror/http/hostname=ftp.debian.org"

Regards,
 - Philipp Wollschlegel

-- 
Adfinis SyGroup AG
Philipp Wollschlegel

Be Smart. Think Open Source.
http://www.adfinis-sygroup.ch


Reply to: