On Tue, Apr 20, 2021 at 03:11:53PM +0800, Wang Chenglong wrote:
[Error] spawn /usr/bin/guestfish -i --ro -a /root/extract/qcow2-dir/openEuler-20.09.x86_64.qcow2.xz guestfish: no operating system was found on this disk
after: spawn /usr/bin/guestfish -i --ro -a /root/extract/qcow2-dir/openEuler-20.09.x86_64.qcow2
Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images.
Signed-off-by: Wang Chenglong 18509160991@163.com
container/qcow2rootfs/bin/main | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/qcow2rootfs/bin/main b/container/qcow2rootfs/bin/main index c7527b79..3bee1bf2 100755 --- a/container/qcow2rootfs/bin/main +++ b/container/qcow2rootfs/bin/main @@ -39,7 +39,7 @@ extract_rootfs() { echo "[$(date +'%D %T')] Converting .qcow2 to .tar.gz, please wait several minutes..." su - "$EXTRACT_USER" -c " export LIBGUESTFS_BACKEND=direct
$EXTRACT_ROOT/bin/extract $QCOW2_FILE $tar_out_file
$EXTRACT_ROOT/bin/extract /root/extract/qcow2-dir/$QCOW2_NAME $tar_out_file
'/root/extract/qcow2-dir/' : can this be replaced by some existed var?
-------- Thanks Yu Chuan
"
echo "[$(date +'%D %T')] Depressing rootfs to $ROOTFS_DIR"
2.23.0