build-debian: Install kernel after stage 2
This to be sure that the initrd generation is triggered properly.
This commit is contained in:
parent
98d8318597
commit
90da2d4d21
|
|
@ -35,9 +35,9 @@ netbase,\
|
||||||
ifupdown,\
|
ifupdown,\
|
||||||
net-tools,\
|
net-tools,\
|
||||||
isc-dhcp-client,\
|
isc-dhcp-client,\
|
||||||
${KERNEL},\
|
|
||||||
systemd-sysv,\
|
systemd-sysv,\
|
||||||
u-boot-tools,\
|
u-boot-tools,\
|
||||||
|
initramfs-tools,\
|
||||||
openssh-server \
|
openssh-server \
|
||||||
"${DIST}" \
|
"${DIST}" \
|
||||||
debian \
|
debian \
|
||||||
|
|
@ -77,6 +77,7 @@ chroot debian /bin/sh -e <<- 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
|
||||||
/usr/bin/apt-get update
|
/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 -y upgrade
|
||||||
/usr/bin/apt-get clean
|
/usr/bin/apt-get clean
|
||||||
/bin/rm -rf /var/lib/apt/lists/*
|
/bin/rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue