From bb4963089b04083220891b11255bc79d43af5f2e Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 31 Oct 2023 00:14:09 +0100 Subject: Meta: Sync the sysroot after running the VM --- meta/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meta/run.sh') diff --git a/meta/run.sh b/meta/run.sh index d72efdb..4312968 100755 --- a/meta/run.sh +++ b/meta/run.sh @@ -3,3 +3,9 @@ scriptdir="$(dirname "$0")" cd "$scriptdir" cd .. qemu-system-i386 -enable-kvm -netdev user,id=n0,hostfwd=udp:127.0.0.1:6001-:6000 -device rtl8139,netdev=n0 -object filter-dump,id=id,netdev=n0,file=./logs/netout -d int -no-reboot -no-shutdown -chardev stdio,id=char0,logfile=./logs/serial.log,signal=off -serial chardev:char0 -hda ./meta/ext2.img -m 1G -cdrom ./kernel/myos.iso -s +# Sync the sysroot +cd ./meta/ +mkdir ./mount +sudo mount ./ext2.img ./mount +sudo cp -r ./mount/* ../sysroot/ +sudo umount ./ext2.img -- cgit v1.2.3