forked from mynodebtc/mynode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_rootfs.sh
executable file
·36 lines (30 loc) · 1.21 KB
/
make_rootfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
### Clear existing rootfs ###
rm -rf out/rootfs*
mkdir -p out/rootfs_rock64/
mkdir -p out/rootfs_raspi3/
mkdir -p out/rootfs_raspi4/
mkdir -p out/rootfs_debian/
### Make rock64 rootfs ###
cp -rf rootfs/standard/* out/rootfs_rock64/
cp -f CHANGELOG out/rootfs_rock64/usr/share/mynode/changelog
rm -f out/mynode_rootfs_rock64.tar.gz
tar -zcvf out/mynode_rootfs_rock64.tar.gz ./out/rootfs_rock64/*
### Make raspi3 rootfs ###
cp -rf rootfs/standard/* out/rootfs_raspi3/
cp -rf rootfs/raspi3/* out/rootfs_raspi3/
cp -f CHANGELOG out/rootfs_raspi3/usr/share/mynode/changelog
rm -f out/mynode_rootfs_raspi3.tar.gz
tar -zcvf out/mynode_rootfs_raspi3.tar.gz ./out/rootfs_raspi3/*
### Make raspi4 rootfs ###
cp -rf rootfs/standard/* out/rootfs_raspi4/
cp -rf rootfs/raspi4/* out/rootfs_raspi4/
cp -f CHANGELOG out/rootfs_raspi4/usr/share/mynode/changelog
rm -f out/mynode_rootfs_raspi4.tar.gz
tar -zcvf out/mynode_rootfs_raspi4.tar.gz ./out/rootfs_raspi4/*
### 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/*