mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
qemu: don't persist disk changes by default
This commit is contained in:
4
run
4
run
@@ -243,7 +243,7 @@ ${vnc}"
|
||||
root='root=/dev/anything'
|
||||
else
|
||||
if [ ! "$arch" = mips64 ]; then
|
||||
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,if=virtio,format=qcow2' \\
|
||||
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,format=qcow2,if=virtio,snapshot' \\
|
||||
"
|
||||
root='root=/dev/vda'
|
||||
fi
|
||||
@@ -298,7 +298,7 @@ ${extra_flags} \
|
||||
mips64)
|
||||
if ! "$ramfs"; then
|
||||
root='root=/dev/hda'
|
||||
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,format=qcow2' \\
|
||||
extra_flags="${extra_flags} -drive 'file=${images_dir}/rootfs.ext2.qcow2,format=qcow2,snapshot' \\
|
||||
"
|
||||
fi
|
||||
cmd="\
|
||||
|
||||
Reference in New Issue
Block a user