2023-06-11 11:30:27 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
TARGET=$1
|
|
|
|
KERNEL_VERSION=$2
|
|
|
|
KERNEL_REPO=$3
|
|
|
|
LANG=C
|
|
|
|
|
|
|
|
APT_PARAM=''
|
|
|
|
STDOUT='/dev/stdout'
|
|
|
|
if [ !$MKRESCUE_VERBOSE ]; then
|
|
|
|
APT_PARAM='-qq -o=Dpkg::Use-Pty=0';
|
|
|
|
STDOUT='/dev/null';
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
FIRMWARES1="firmware-linux-free"
|
|
|
|
FIRMWARES2="firmware-bnx2 firmware-bnx2x firmware-cavium \
|
|
|
|
firmware-misc-nonfree firmware-myricom firmware-netxen firmware-qlogic \
|
|
|
|
firmware-realtek"
|
|
|
|
|
|
|
|
chroot ${TARGET} mount -t proc proc /proc
|
2023-06-12 15:48:57 +02:00
|
|
|
chroot ${TARGET} apt-get $APT_PARAM --yes install busybox-static zstd > $STDOUT
|
2023-06-11 11:30:27 +02:00
|
|
|
chroot ${TARGET} apt-get $APT_PARAM --yes install -t ${KERNEL_REPO} linux-image-${KERNEL_VERSION} linux-headers-${KERNEL_VERSION} > $STDOUT
|
|
|
|
chroot ${TARGET} apt-get $APT_PARAM --yes install -t ${KERNEL_REPO} zfs-dkms > $STDOUT
|
|
|
|
chroot ${TARGET} apt-get $APT_PARAM --yes install ${FIRMWARES1} > $STDOUT
|
|
|
|
chroot ${TARGET} apt-get $APT_PARAM --yes install -t ${KERNEL_REPO} ${FIRMWARES2} > $STDOUT
|
|
|
|
chroot ${TARGET} umount /proc
|