Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Жора Змейкин
mkimage-profiles
Commits
448343f3
Commit
448343f3
authored
Jan 16, 2026
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added zstd compression option with `SQUASHFS=zstd`
parent
0ab5ceaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
03-test-kernel
features.in/stage2/stage1/scripts.d/03-test-kernel
+7
-0
No files found.
features.in/stage2/stage1/scripts.d/03-test-kernel
View file @
448343f3
...
@@ -6,6 +6,7 @@ CONFIGS=/boot/config-*
...
@@ -6,6 +6,7 @@ CONFIGS=/boot/config-*
GZ_OPTS
=
"-comp gzip"
GZ_OPTS
=
"-comp gzip"
XZ_OPTS
=
"-comp xz"
XZ_OPTS
=
"-comp xz"
LZO_OPTS
=
"-comp lzo"
LZO_OPTS
=
"-comp lzo"
ZSTD_OPTS
=
"-comp zstd -Xcompression-level 11"
verbose
()
{
[
-z
"
$GLOBAL_VERBOSE
"
]
||
echo
"**
$@
"
>
&2
;
}
verbose
()
{
[
-z
"
$GLOBAL_VERBOSE
"
]
||
echo
"**
$@
"
>
&2
;
}
fatal
()
{
echo
"** error:
$@
"
>
&2
;
exit
1
;
}
fatal
()
{
echo
"** error:
$@
"
>
&2
;
exit
1
;
}
...
@@ -37,6 +38,12 @@ options()
...
@@ -37,6 +38,12 @@ options()
{
{
# squashfs options: not really neccessary but better than none
# squashfs options: not really neccessary but better than none
# NB: this config file should be carried over into install2
# NB: this config file should be carried over into install2
if
[
"
$GLOBAL_SQUASHFS
"
=
"zstd"
]
&&
configured
"SQUASHFS_ZSTD=y"
;
then
verbose
"using modern zstd compression"
echo
"
$ZSTD_OPTS
"
return
0
fi
if
[
"
$GLOBAL_SQUASHFS
"
!=
"fast"
]
&&
configured
"SQUASHFS_XZ=y"
;
then
if
[
"
$GLOBAL_SQUASHFS
"
!=
"fast"
]
&&
configured
"SQUASHFS_XZ=y"
;
then
# NB: the decompression filter overhead might hurt
# NB: the decompression filter overhead might hurt
# NB: there are arm, powerpc and some other filters too
# NB: there are arm, powerpc and some other filters too
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment