pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
58 stars 22 forks source link

run_qemu failed during "Copying in extra file trees…" #34

Closed yizhanglinux closed 1 year ago

yizhanglinux commented 1 year ago

Hello,

I am currently trying to apply this script with the following materials, and it always failed during Create a snapshot of '/root/git/linux/qbuild/mkosi.cache/fedora~40/image.cache' in '/root/git/linux/qbuild/.mkosi-tmpsv2arv0d/root'

DISTRO: Fedora release 40 (Rawhide) with 6.5.0-0.rc6.20230818git0e8860d2125f.47.fc40.x86_64 Linux: latest linux tree: https://github.com/torvalds/linux.git mkosi: mkosi 15.1

# run_qemu.sh --cxl  -r wipe
--snip--
‣   Installing cache copies
‣   Copying cached trees
Create a snapshot of '/root/git/linux/qbuild/mkosi.cache/fedora~40/image.cache' in '/root/git/linux/qbuild/.mkosi-tmpsv2arv0d/root'
‣   Copying in extra file trees…
cp: cannot overwrite non-directory '/root/git/linux/qbuild/.mkosi-tmpsv2arv0d/root/lib' with directory '/root/git/linux/qbuild/mkosi.extra/lib'
‣ "cp --recursive --preserve=mode,timestamps,links,xattr --reflink=auto /root/git/linux/qbuild/mkosi.extra /root/git/linux/qbuild/.mkosi-tmpsv2arv0d/root --no-target-directory" returned non-zero exit code 1.

Could you help check it?

yizhanglinux commented 1 year ago

I filed this issue to mkosi: https://github.com/systemd/mkosi/issues/1851