summaryrefslogtreecommitdiff
path: root/meta/sync.sh
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-30 22:44:02 +0100
committerAnton Kling <anton@kling.gg>2023-10-31 00:18:38 +0100
commit34342b53c39aa3f22326b6e4eda960cc20cfa0f0 (patch)
tree01bc4fcbc78623e406bcfa45dd9bd04ebd915663 /meta/sync.sh
parent8a9208612eec8ddae4c418485d848ecfa0613699 (diff)
Meta: Create simple build scripts for kernel, userland and general enviroment
Diffstat (limited to 'meta/sync.sh')
-rwxr-xr-xmeta/sync.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/sync.sh b/meta/sync.sh
new file mode 100755
index 0000000..036ad18
--- /dev/null
+++ b/meta/sync.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+scriptdir="$(dirname "$0")"
+cd "$scriptdir"
+
+# Sync the sysroot with the bootable image
+mkdir ./mount
+sudo mount ext2.img mount
+sudo cp -r ../sysroot/* ./mount/
+sudo umount mount
+rmdir ./mount