Changed kernel to 5.10.0-0.bpo.3.

This commit is contained in:
Tomasz Zaworski 2021-07-29 12:42:53 +02:00
parent f7ec8578cd
commit 16c2d0ce3e
4 changed files with 13 additions and 8 deletions

View File

@ -11,6 +11,7 @@ debootstrap --arch=amd64 --variant=minbase ${DEBIAN_CODENAME} ${TARGET} http://h
cat << EOF > ${TARGET}/etc/apt/sources.list
deb http://httpredir.debian.org/debian ${DEBIAN_CODENAME} main contrib non-free
deb http://security.debian.org/ ${DEBIAN_CODENAME}/updates main contrib non-free
deb http://deb.debian.org/debian ${DEBIAN_CODENAME}-backports main contrib non-free
EOF
cat << EOF > ${TARGET}/etc/apt/apt.conf.d/80small

View File

@ -81,7 +81,7 @@ cat /usr/lib/grub/i386-pc/cdboot.img ${TEMP_DIR_GRUB}/core.img > $TEMP_DIR/boot/
cat /usr/lib/grub/i386-pc/boot.img ${TEMP_DIR_GRUB}/core.img > ${TEMP_DIR_GRUB}/embedded.img
#EFI
grub-mkimage -C xz -O x86_64-efi -p /boot/efi/ -o "${TEMP_DIR_GRUB}/bootx64.efi" linux chain iso9660 normal all_video gfxterm gfxmenu png
grub-mkimage -C xz -O x86_64-efi -p /boot/efi/ -o "${TEMP_DIR_GRUB}/bootx64.efi" linux chain iso9660 normal all_video gfxterm gfxmenu png linuxefi
truncate -s $(($(stat --printf="%s" ${TEMP_DIR_GRUB}/bootx64.efi) + 24576)) ${TEMP_DIR_GRUB}/efi.img
mkfs.vfat ${TEMP_DIR_GRUB}/efi.img
mkdir ${TEMP_DIR_GRUB}/mountpoint

View File

@ -2,9 +2,11 @@
TARGET=$1
KERNEL_VERSION=$2
KERNEL_REPO=$3
LANG=C
FIRMWARES="firmware-bnx2 firmware-bnx2x firmware-cavium firmware-linux-free \
FIRMWARES1="firmware-linux-free"
FIRMWARES2="firmware-bnx2 firmware-bnx2x firmware-cavium \
firmware-misc-nonfree firmware-myricom firmware-netxen firmware-qlogic \
firmware-realtek"
@ -16,8 +18,9 @@ EOF
chmod a+x $TARGET/usr/sbin/policy-rc.d
chroot ${TARGET} mount -t proc proc /proc
chroot ${TARGET} apt-get --yes install busybox-static linux-image-${KERNEL_VERSION}
chroot ${TARGET} apt-get --yes install linux-headers-${KERNEL_VERSION}
chroot ${TARGET} apt-get --yes install zfs-dkms
chroot ${TARGET} apt-get --yes install ${FIRMWARES}
chroot ${TARGET} apt-get --yes install busybox-static
chroot ${TARGET} apt-get --yes install -t ${KERNEL_REPO} linux-image-${KERNEL_VERSION} linux-headers-${KERNEL_VERSION}
chroot ${TARGET} apt-get --yes install -t ${KERNEL_REPO} zfs-dkms
chroot ${TARGET} apt-get --yes install ${FIRMWARES1}
chroot ${TARGET} apt-get --yes install -t ${KERNEL_REPO} ${FIRMWARES2}
chroot ${TARGET} umount /proc

View File

@ -4,7 +4,8 @@ TARGET=$1
VERSION=$(date +%g.%m)
OUTPUT=${TARGET}/output/${VERSION}
DEBIAN_CODENAME='buster'
KERNEL_VERSION='4.19.0-8-amd64'
KERNEL_VERSION='5.10.0-0.bpo.3-amd64'
KERNEL_REPO="buster-backports"
ARCH='amd64'
umask 022
@ -26,7 +27,7 @@ ${SCRIPTDIR}/bin/basefs_init ${TARGET}/basefs ${DEBIAN_CODENAME}
cp -a ${TARGET}/basefs ${TARGET}/rootfs
cp -a ${TARGET}/basefs ${TARGET}/helperfs
${SCRIPTDIR}/bin/helperfs_config ${TARGET}/helperfs ${KERNEL_VERSION}
${SCRIPTDIR}/bin/helperfs_config ${TARGET}/helperfs ${KERNEL_VERSION} ${KERNEL_REPO}
# ROOTFS