forked from sipeed/LonganPi-3H-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkrootfs-ubuntu-cli.sh
executable file
·38 lines (32 loc) · 1.36 KB
/
mkrootfs-ubuntu-cli.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
37
38
#!/usr/bin/env bash
if [ -z "$MMDEBSTRAP" ]
then
MMDEBSTRAP=mmdebstrap
fi
mkdir -p build
set -eux
genrootfs() {
echo "
deb http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted universe multiverse
" | $MMDEBSTRAP --architectures=arm64 -v -d \
--include="ca-certificates locales dosfstools binutils file \
tree sudo bash-completion memtester openssh-server wireless-regdb \
wpasupplicant systemd-timesyncd usbutils parted systemd-sysv \
iperf3 stress-ng avahi-daemon tmux screen i2c-tools net-tools \
ethtool ckermit lrzsz minicom picocom btop neofetch iotop htop \
bmon e2fsprogs nvi tcpdump alsa-utils squashfs-tools evtest \
bluez bluez-hcidump bluez-tools btscanner bluez-alsa-utils \
device-tree-compiler ubuntu-keyring pulseaudio-module-bluetooth \
blueman network-manager network-manager-config-connectivity-ubuntu" > ./build/rootfs-ubuntu-cli.tar
}
# if you want skip Ubuntu rootfs build, please comment this line:
genrootfs
cd overlay
for i in *
do
tar --append --file=../build/rootfs-ubuntu-cli.tar $i
done
cd ..