mynode/make_rootfs.sh

19 lines
587 B
Bash
Raw Normal View History

2019-06-15 23:02:44 +00:00
#!/bin/bash
2020-07-31 23:14:58 +00:00
# DEPRECATED DEVICES: raspi3
# Make each device
2022-01-25 03:50:13 +00:00
for i in 'raspi4' 'rock64' 'rockpro64' 'rockpi4' 'debian'; do
echo Creating root file system for $i
mkdir -p out/rootfs_$i/
rsync -r -u rootfs/standard/* out/rootfs_$i/
rsync -r -u rootfs/$i/* out/rootfs_$i/
rsync -r -u CHANGELOG out/rootfs_$i/usr/share/mynode/changelog
cp -f setup/setup_device.sh out/setup_device.sh
2021-04-22 05:19:12 +00:00
#cp -f rootfs/standard/usr/share/mynode/mynode_app_versions.sh out/mynode_app_versions.sh
rm -f out/mynode_rootfs_$i.tar.gz
tar -zcf out/mynode_rootfs_$i.tar.gz out/rootfs_$i/*
done
echo Done!