mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
9 lines
191 B
Bash
Executable File
9 lines
191 B
Bash
Executable File
#!/usr/bin/env bash
|
|
images_dir="$1"
|
|
cd "$images_dir"
|
|
f=rootfs.ext2
|
|
exe="${HOST_DIR}/bin/qemu-img"
|
|
if [ -f "$exe" ] && [ -f "$f" ]; then
|
|
"$exe" convert -f raw -O qcow2 "$f" "${f}.qcow2"
|
|
fi
|