2017-07-05 23:51:31 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
TARGET=$1
|
|
|
|
LANG=C
|
|
|
|
|
2017-07-21 12:10:05 +02:00
|
|
|
FIRMWARES="firmware-bnx2 firmware-bnx2x firmware-cavium firmware-linux-free \
|
|
|
|
firmware-misc-nonfree firmware-myricom firmware-netxen firmware-qlogic \
|
|
|
|
firmware-realtek"
|
|
|
|
|
2017-07-05 23:51:31 +02:00
|
|
|
cat << EOF > $TARGET/usr/sbin/policy-rc.d
|
|
|
|
#!/bin/sh
|
|
|
|
echo "All runlevel operations denied by policy" >&2
|
|
|
|
exit 101
|
|
|
|
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-4.9.0-3-amd64
|
|
|
|
chroot ${TARGET} apt-get --yes install linux-headers-4.9.0-3-amd64
|
|
|
|
chroot ${TARGET} apt-get --yes install zfs-dkms
|
2017-07-21 12:10:05 +02:00
|
|
|
chroot ${TARGET} apt-get --yes install ${FIRMWARES}
|
2017-07-05 23:51:31 +02:00
|
|
|
chroot ${TARGET} umount /proc
|