Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (33 sloc) 885 Bytes
#!/bin/bash
# Copyright (c) 2017, The MesaLock Linux Project Contributors
# All rights reserved.
#
# This work is licensed under the terms of the BSD 3-Clause License.
# For a copy, see the LICENSE file.
set -e
workdir="$(pwd)"
builddir="$(pwd)/build"
rootfsdir="$builddir/rootfs"
echo "[+] mesalockrootfs: installing packages"
packages=(filesystem \
glibc \
gcc-libs \
ion-shell \
uutils-coreutils \
ripgrep \
fd-find \
tzdata \
xi-core \
xi-term \
uutils-findutils \
tokei \
brotli \
mesapy \
mesalock-demo)
rm -rf "$rootfsdir"
mkdir -p "$rootfsdir"
for p in "${packages[@]}"; do
tar xkfJ build/"$p"-*/"$p"-*.tar.xz -C "$rootfsdir"
done
echo "[+] mesalockrootfs: tar and zip rootfs"
tar cfJ "$builddir/rootfs.tar.xz" -C "$rootfsdir" .