summaryrefslogtreecommitdiff
path: root/meta/sync.sh
blob: ab56757aae6373bd982bd7f9271ba61669b5e8b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
scriptdir="$(dirname "$0")"
cd "$scriptdir"

[ -f ./ext2.img ] || (./new.sh ; exit)

# Sync the sysroot with the bootable image
mkdir ./mount
sudo mount ext2.img mount
sudo cp -r ../sysroot/* ./mount/
sudo umount mount
rmdir ./mount