Lines Matching refs:disk
74 sudo umount disk.mnt || true
81 rm -rf disk.mnt disk.raw || true
83 fallocate -l 2G disk.raw
89 sudo qemu-nbd -c $DISKDEV --format=raw disk.raw
96 mkdir -p disk.mnt
98 sudo mount $PARTDEV disk.mnt
100 sudo cp -a $1/. disk.mnt/.
101 sudo cp $2 disk.mnt/vmlinuz
102 sudo sed -i "/^root/ { s/:x:/::/ }" disk.mnt/etc/passwd
103 echo "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" | sudo tee -a disk.mnt/etc/inittab
104 echo -en "auto lo\niface lo inet loopback\nauto eth0\niface eth0 inet dhcp\n" | sudo tee disk.mnt/e…
105 echo "debugfs /sys/kernel/debug debugfs defaults 0 0" | sudo tee -a disk.mnt/etc/fstab
106 echo 'binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0' | sudo tee -a disk.mnt/etc/fst…
109 sudo tee -a disk.mnt/etc/udev/50-binder.rules
113 echo 'SELINUX=disabled' | sudo tee disk.mnt/etc/selinux/config
116 echo "kernel.printk = 7 4 1 3" | sudo tee -a disk.mnt/etc/sysctl.conf
117 echo "debug.exception-trace = 0" | sudo tee -a disk.mnt/etc/sysctl.conf
120 cat $SYZ_SYSCTL_FILE | sudo tee -a disk.mnt/etc/sysctl.conf
123 echo -en "127.0.0.1\tlocalhost\n" | sudo tee disk.mnt/etc/hosts
124 echo "nameserver 8.8.8.8" | sudo tee -a disk.mnt/etc/resolve.conf
125 echo "ClientAliveInterval 420" | sudo tee -a disk.mnt/etc/ssh/sshd_config
126 echo "syzkaller" | sudo tee disk.mnt/etc/hostname
129 sudo mkdir -p disk.mnt/root/.ssh
130 sudo cp key.pub disk.mnt/root/.ssh/authorized_keys
131 sudo chown root disk.mnt/root/.ssh/authorized_keys
132 sudo mkdir -p disk.mnt/boot/grub
140 cat << EOF | sudo tee disk.mnt/boot/grub/grub.cfg
161 sudo grub-install --target=i386-pc --boot-directory=disk.mnt/boot --no-floppy $DISKDEV