Lines Matching refs:disk

33 sudo umount disk.mnt || true
40 rm -rf disk.mnt disk.raw || true
42 fallocate -l 2G disk.raw
48 sudo qemu-nbd -c $DISKDEV --format=raw disk.raw
55 mkdir -p disk.mnt
57 sudo mount $PARTDEV disk.mnt
59 sudo cp -a $1/. disk.mnt/.
60 sudo cp $2 disk.mnt/vmlinuz
61 sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd
62 echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab
63 echo -en "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp\n" | sudo tee disk.mnt/e…
64 echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab
65 echo 'binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0' | sudo tee -a disk.mnt/etc/fst…
68 sudo tee -a disk.mnt/etc/udev/50-binder.rules
70 echo 'SELINUX=disabled' | sudo tee disk.mnt/etc/selinux/config
72 echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf
73 echo "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf
76 cat $SYZ_SYSCTL_FILE | sudo tee -a disk.mnt/etc/sysctl.conf
79 echo -en "127.0.0.1\tlocalhost\n" | sudo tee disk.mnt/etc/hosts
80 echo "nameserver 8.8.8.8" | sudo tee -a disk.mnt/etc/resolve.conf
81 echo "ClientAliveInterval 420" | sudo tee -a disk.mnt/etc/ssh/sshd_config
82 echo "syzkaller" | sudo tee disk.mnt/etc/hostname
85 sudo mkdir -p disk.mnt/root/.ssh
86 sudo cp key.pub disk.mnt/root/.ssh/authorized_keys
87 sudo chown root disk.mnt/root/.ssh/authorized_keys
88 sudo mkdir -p disk.mnt/boot/grub
96 cat << EOF | sudo tee disk.mnt/boot/grub/grub.cfg
112 sudo grub-install --target=i386-pc --boot-directory=disk.mnt/boot --no-floppy $DISKDEV