summaryrefslogtreecommitdiff
path: root/meta/sync.sh
blob: 9bbf2b1ae1409d59898e7409bca6e7f0c898b18d (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 rsync ../sysroot/ ./mount/
sudo umount mount
rmdir ./mount