Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
mkinitfs
Commits
e161ca0b
Commit
e161ca0b
authored
Nov 08, 2022
by
Natanael Copa
Browse files
mkinitfs: add 'none' compression
fixes
#30
parent
bc570c23
Changes
2
Hide whitespace changes
Inline
Side-by-side
mkinitfs.1.in
View file @
e161ca0b
...
...
@@ -15,7 +15,7 @@ Dont use files from the root file system, use specified path instead.
Use configfile instead of \fI@sysconfdir@/mkinitfs.conf\fR.
.TP
\fB\-C\fR \fIALGORITHM\fR
Compress initramfs using gzip (default), xz, zstd
or
lz4.
Compress initramfs using gzip (default), xz, zstd
,
lz4
or none
.
.TP
\fB\-f\fR \fIFSTAB\fR
Use fstab instead of \fI@datadir@/fstab\fR.
...
...
mkinitfs.in
View file @
e161ca0b
...
...
@@ -194,7 +194,7 @@ usage: mkinitfs [-hkKLln] [-b basedir] [-c configfile] [-F features] [-f fstab]
options:
-b prefix files and kernel modules with basedir
-c use configfile instead of
$config
-C initramfs compression (gzip|xz|zstd|lz4 defaults to
$initfscomp
)
-C initramfs compression (gzip|xz|zstd|lz4
|none
defaults to
$initfscomp
)
-f use fstab instead of
$fstab
-F use specified features
-h print this help
...
...
@@ -303,6 +303,7 @@ case "$initfscomp" in
xz
)
cmd_exists xz
;
comp
=
"xz -C crc32 -T 0"
;;
zstd
)
cmd_exists zstd
;
comp
=
"zstd -19"
;;
lz4
)
cmd_exists lz4
;
comp
=
"lz4 --favor-decSpeed --best -lz"
;;
none
)
comp
=
"cat"
;;
*
)
echo
"Initramfs compression
\"
$initfscomp
\"
not supported!"
;
exit
1
;;
esac
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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