diff options
author | Anton Kling <anton@kling.gg> | 2023-10-31 00:14:09 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-31 00:18:38 +0100 |
commit | bb4963089b04083220891b11255bc79d43af5f2e (patch) | |
tree | b9583e3f0794f89d439005f6eae4330828a180f8 /meta | |
parent | 63d78776b868725ed0b5072b9ff032aff670dbfe (diff) |
Meta: Sync the sysroot after running the VM
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/run.sh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |