Lines Matching refs:DIR
11 DIR=wheezy
12 sudo rm -rf $DIR
13 mkdir -p $DIR
14 …ace,sudo,less,psmisc,selinux-utils,policycoreutils,checkpolicy,selinux-policy-default $RELEASE $DIR
17 sudo sed -i '/^root/ { s/:x:/::/ }' $DIR/etc/passwd
18 echo 'T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' | sudo tee -a $DIR/etc/inittab
19 printf '\nauto eth0\niface eth0 inet dhcp\n' | sudo tee -a $DIR/etc/network/interfaces
20 echo 'debugfs /sys/kernel/debug debugfs defaults 0 0' | sudo tee -a $DIR/etc/fstab
21 echo 'binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0' | sudo tee -a $DIR/etc/fstab
22 echo 'SELINUX=disabled' | sudo tee $DIR/etc/selinux/config
23 echo "kernel.printk = 7 4 1 3" | sudo tee -a $DIR/etc/sysctl.conf
24 echo 'debug.exception-trace = 0' | sudo tee -a $DIR/etc/sysctl.conf
25 echo "net.core.bpf_jit_enable = 1" | sudo tee -a $DIR/etc/sysctl.conf
26 echo "net.core.bpf_jit_kallsyms = 1" | sudo tee -a $DIR/etc/sysctl.conf
27 echo "net.core.bpf_jit_harden = 0" | sudo tee -a $DIR/etc/sysctl.conf
28 echo "kernel.softlockup_all_cpu_backtrace = 1" | sudo tee -a $DIR/etc/sysctl.conf
29 echo "kernel.kptr_restrict = 0" | sudo tee -a $DIR/etc/sysctl.conf
30 echo "kernel.watchdog_thresh = 60" | sudo tee -a $DIR/etc/sysctl.conf
31 echo "net.ipv4.ping_group_range = 0 65535" | sudo tee -a $DIR/etc/sysctl.conf
32 echo -en "127.0.0.1\tlocalhost\n" | sudo tee $DIR/etc/hosts
33 echo "nameserver 8.8.8.8" | sudo tee -a $DIR/etc/resolve.conf
34 echo "syzkaller" | sudo tee $DIR/etc/hostname
36 sudo mkdir -p $DIR/root/.ssh/
37 cat $RELEASE.id_rsa.pub | sudo tee $DIR/root/.ssh/authorized_keys
42 sudo mkdir -p /mnt/$DIR
43 sudo mount -o loop $RELEASE.img /mnt/$DIR
44 sudo cp -a $DIR/. /mnt/$DIR/.
45 sudo umount /mnt/$DIR