Commit graph

69 commits

Author SHA1 Message Date
a17b7944ea
tar doesn't even support --include, so moved it to tail 2024-08-03 16:11:23 -04:00
02d34478d8
Enabled code to actually run and be testable 2024-08-03 16:00:08 -04:00
605d0ffea7
Cleanup help on mkstage4 2024-08-03 15:31:13 -04:00
7b94bae02f
Code cleanup 2024-08-03 14:33:30 -04:00
d5d2e812c1
Code cleanup to near pristine so far 2024-08-03 14:24:57 -04:00
aa6c7ac994
Code cleanup, optimization 2024-08-03 02:22:34 -04:00
43d5c71937
Code cleanup, no need for escaped quotes afterall 2024-08-02 21:59:20 -04:00
a821893962
Refactor a lot of code and cleanup 2024-08-02 21:50:53 -04:00
Horea Christian
8dfe860133 Bash syntax fix 2023-07-17 06:09:48 -04:00
Horea Christian
aecfd49e84 Better help text. 2023-07-14 23:54:48 -04:00
Horea Christian
acd878fc29 Splitting operation to satisfy shellcheck 2023-05-23 19:36:57 -04:00
Horea Christian
173f0fb249 Allegedly safer quoting style as per shellcheck 🤔 2023-05-23 19:26:34 -04:00
Horea Christian
c984d8513d Splitting occurs implicitly 2023-05-23 19:16:41 -04:00
Horea Christian
232443d1ce Fixed overlay exclusion 2023-05-23 19:06:29 -04:00
Horea Christian
06585dd1e2 typo 2023-05-23 18:15:24 -04:00
Horea Christian
7fe3a53d7e portageq — excluding all repositories, not just ::gentoo 2023-05-23 18:06:00 -04:00
Horea Christian
1c128276bf Exclude other overlay dirs as well, not just ::gentoo 2023-05-23 08:04:20 -04:00
Horea Christian
1ab7c072d5 Less ambiguous array assignment 2023-03-12 01:30:55 -05:00
Horea Christian
12f4506a18 Better parameter ordering 2023-01-02 20:19:40 -05:00
Horea Christian
3891a608ff Fixed help text and better explained compression parameters 2023-01-02 20:14:46 -05:00
Horea Christian
d30ac26a8c Updated shebang 2022-12-15 17:41:36 -05:00
Horea Christian
999415bda6 Homogenized quotation marks 2022-09-12 12:29:48 -04:00
Horea Christian
e0220d9b61 Removed comments 2022-09-12 12:27:22 -04:00
Horea Christian
8099ec1c8b Fixed up fix 2022-09-12 12:11:20 -04:00
Runney Wu
d8b979bee1
Use star mark to expand COMP_OPTIONS (#44)
Closes: 46
2022-09-12 12:04:31 -04:00
Horea Christian
df3d89d5a2 Disabled broken feature 2022-09-12 09:11:35 -04:00
Horea Christian
f7655ed21d Single quotes to fix bug reported outside of issue tracker 2022-09-12 06:25:03 -04:00
Horea Christian
ddc9d74901 Wrap use-compres-prog in quotation marks 2021-10-12 18:35:14 -04:00
Horea Christian
783e7ea52a Updated file format and exec name as per:
https://github.com/TheChymera/mkstage4/issues/41#issuecomment-735435551
2020-11-29 17:12:29 -05:00
Horea Christian
351c9fe682 Updated file format as per
https://github.com/TheChymera/mkstage4/issues/41
2020-11-14 21:41:04 -05:00
Horea Christian
bc4d5e7320 Improved -k parameter documentation 2020-08-31 19:46:24 -04:00
Mark Gomersbach
df1827410b
Add compression types and multithread if possible. (#39)
* Add compression types and multithread if possible.

Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>

* Bump shell-linter version

Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
2020-04-17 04:43:11 -04:00
lucianposton
8c61bd4395
Add -i option to include files prior to exclusion (#30) 2020-04-02 22:10:09 -04:00
lucianposton
afa8c072c9
Misc wordsplitting/globbing changes (#32)
-Add quotes to prevent word splitting
-Remove $TARGET* globbing so hidden files are included
-Remove unused globbing

Signed-off-by: Lucian Poston <lucianposton@pm.me>
2020-03-24 22:46:32 -04:00
lucianposton
8ab90fa6b0
Merge confidential file excludes into single -c option (#28)
Signed-off-by: Lucian Poston <lucianposton@pm.me>
2020-03-24 22:43:25 -04:00
lucianposton
c6267f9c23
Fix indentation whitespacee (#29)
Signed-off-by: Lucian Poston <lucianposton@pm.me>
2020-02-05 04:45:04 +01:00
Tatsh
33ed7b3166 Bug fix for when no tar options are passed (#24)
Make tabs more consistent
Remove unnecessary quotes
Simplify boolean checks
Quote strings for clarity
Search lib*/modules/* for modules to remain compatibile with < profile 17.1 systems
Remove unnecessary escape to grep RE
2019-11-07 07:11:16 +01:00
Horea Christian
5f0fdb96b8 Tabs not spaces 2019-11-03 21:13:54 +01:00
Tatsh
52fe0c0326 Clean up based on Shellcheck recommendations (#23)
Use arrays for lists of items
Do not use legacy backticks
2019-11-03 18:25:01 +01:00
Walter Hüttenmeyer
d4ded4bd5f add new portage paths with optional portageq logic (#18)
* add new portage paths

added /var/db/repos/gentoo and /var/cache/distfiles to hard-coded list of excludes.
Portage has moved (when?) according to https://wiki.gentoo.org/wiki//usr/portage

* Added portageq logic

Added portageq logic to detect where portage stores its tree and distfiles.
If this fails, fall back to a default list declared in EXCLUDES_DEFAULT_PORTAGE
2019-08-05 14:18:24 +02:00
Horea Christian
8dfbdc41f9 Improved getopts usage
As suggested by Walter Hüttenmeyer.
2019-05-16 18:29:07 +02:00
Horea Christian
bc637d61d1 Removed whitespace 2019-05-08 22:16:42 +02:00
liu-kan
b75b9f7715 Try to compress parallelly (#15)
* Add -p flag for parallel compressing. The script will test if pbzip2 is install, before using it for parallel compressing.

* Update README.md

* Update README.md
2018-12-14 21:53:19 +01:00
Brendan Horan
f7bf41c088 exclude /var/lib/docker , causes issues on unpack 2018-07-10 21:36:10 +08:00
Brendan Horan
d03ec6fcb8 Update tar cmd line options 2018-07-08 15:28:55 +08:00
Kan Liu
bbf898d45e fix -k bug 2018-05-11 12:27:22 +08:00
Kan Liu
bdcafb5b0e -k: separately save current kernel moudules and src (smaller). + -e: an additional excludes directory (one dir one -e). 2018-05-11 11:13:12 +08:00
Tomas Slobodnik
3f1334cbf3 fix TARGET path handling 2017-03-22 17:17:24 +01:00
Horea Christian
6744db0df0 using reported command line string for actual command as well 2017-01-11 23:53:18 +01:00
Sylvain Chevallier
d1372b0230 prefixing exclude directories 2017-01-11 16:30:27 +01:00