mynode/make_rootfs.sh

38 lines
1.3 KiB
Bash
Raw Normal View History

2019-06-15 23:02:44 +00:00
#!/bin/bash
### Clear existing rootfs ###
rm -rf out/rootfs*
mkdir -p out/rootfs_rock64/
2019-06-30 16:50:05 +00:00
mkdir -p out/rootfs_raspi3/
mkdir -p out/rootfs_raspi4/
2019-10-03 03:10:20 +00:00
mkdir -p out/rootfs_debian/
2019-06-30 16:50:05 +00:00
2019-06-15 23:02:44 +00:00
2019-06-18 02:34:38 +00:00
### Make rock64 rootfs ###
2019-06-15 23:02:44 +00:00
cp -rf rootfs/standard/* out/rootfs_rock64/
2019-10-09 12:54:16 +00:00
cp -rf rootfs/rock64/* out/rootfs_rock64/
2019-09-18 00:39:01 +00:00
cp -f CHANGELOG out/rootfs_rock64/usr/share/mynode/changelog
2019-06-30 16:50:05 +00:00
rm -f out/mynode_rootfs_rock64.tar.gz
tar -zcvf out/mynode_rootfs_rock64.tar.gz ./out/rootfs_rock64/*
2019-06-15 23:02:44 +00:00
2019-06-30 16:50:05 +00:00
### Make raspi3 rootfs ###
cp -rf rootfs/standard/* out/rootfs_raspi3/
cp -rf rootfs/raspi3/* out/rootfs_raspi3/
2019-09-18 00:39:01 +00:00
cp -f CHANGELOG out/rootfs_raspi3/usr/share/mynode/changelog
2019-06-30 16:50:05 +00:00
rm -f out/mynode_rootfs_raspi3.tar.gz
tar -zcvf out/mynode_rootfs_raspi3.tar.gz ./out/rootfs_raspi3/*
2019-06-30 16:50:05 +00:00
### Make raspi4 rootfs ###
cp -rf rootfs/standard/* out/rootfs_raspi4/
cp -rf rootfs/raspi4/* out/rootfs_raspi4/
2019-09-18 00:39:01 +00:00
cp -f CHANGELOG out/rootfs_raspi4/usr/share/mynode/changelog
2019-06-30 16:50:05 +00:00
rm -f out/mynode_rootfs_raspi4.tar.gz
tar -zcvf out/mynode_rootfs_raspi4.tar.gz ./out/rootfs_raspi4/*
2019-10-03 03:10:20 +00:00
### Make debian rootfs ###
cp -rf rootfs/standard/* out/rootfs_debian/
cp -rf rootfs/debian/* out/rootfs_debian/
cp -f CHANGELOG out/rootfs_debian/usr/share/mynode/changelog
rm -f out/mynode_rootfs_debian.tar.gz
tar -zcvf out/mynode_rootfs_debian.tar.gz ./out/rootfs_debian/*