wmirescue/stretch-amd64/bin/helperfs_config

18 lines
453 B
Plaintext
Raw Normal View History

2017-07-05 23:51:31 +02:00
#!/bin/sh
TARGET=$1
LANG=C
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
chroot ${TARGET} umount /proc