SHA256
9 lines
230 B
Bash
9 lines
230 B
Bash
create_tarball() {
|
|
if [ "$(uname -s)" -eq "Linux" ]; then
|
|
unshare -U \
|
|
tar -cvvzf "$(realpath ${OUTPUT})" --numeric-owner --acls --xattrs -C "$1/root" .
|
|
else
|
|
echo "Unsupported kernel."
|
|
fi
|
|
}
|