build-debian: Install kernel after stage 2

This to be sure that the initrd generation is triggered properly.
This commit is contained in:
Johan Gunnarsson 2019-05-10 23:28:14 +02:00
parent 98d8318597
commit 90da2d4d21
1 changed files with 2 additions and 1 deletions

View File

@ -35,9 +35,9 @@ netbase,\
ifupdown,\
net-tools,\
isc-dhcp-client,\
${KERNEL},\
systemd-sysv,\
u-boot-tools,\
initramfs-tools,\
openssh-server \
"${DIST}" \
debian \
@ -77,6 +77,7 @@ chroot debian /bin/sh -e <<- EOF
/debootstrap/debootstrap --second-stage
/bin/mv /tmp/sources.list /etc/apt/sources.list
/usr/bin/apt-get update
/usr/bin/apt-get -y --no-install-recommends install ${KERNEL}
/usr/bin/apt-get -y upgrade
/usr/bin/apt-get clean
/bin/rm -rf /var/lib/apt/lists/*