-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from 23xvx/add-support-platform-termux
Add zst compression type
- Loading branch information
Showing
7 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,4 +76,4 @@ do_unmount "${frn}-armhf" | |
do_unmount "${frn}-amd64" | ||
|
||
shout "Build Complete.." | ||
ls ${frn}*tar* | ||
ls ${frn}*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ do_unmount "${frn}-armhf" | |
do_unmount "${frn}-amd64" | ||
|
||
shout "Build Complete.." | ||
ls ${frn}*tar* | ||
ls ${frn}*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
target=$1 | ||
|
||
tar \ | ||
--exclude={/data,/apex,/vendor,/system,/sdcard} \ | ||
--exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/media/*,/lost+found/*} \ | ||
--exclude="*.l2s.*" \ | ||
--exclude=/${0} \ | ||
--exclude="/${target}.zst" \ | ||
--exclude-caches-all \ | ||
--one-file-system \ | ||
-cpf \ | ||
- / -P \ | ||
| pv -s $(($(du -skx / | awk '{print $1}') * 1024)) |\ | ||
zstd > /"${target}".zst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters