Skip to content

Commit

Permalink
fix(dracut): typo error 'aggresive' -> 'aggressive'
Browse files Browse the repository at this point in the history
This option was introduced not long ago, but unfortunately it was
misspelled and have affected following up commits. It's not a commonly
used option, at least not yet, so just rename and fix it.

Signed-off-by: Kairui Song <[email protected]>
  • Loading branch information
ryncsn authored and johannbg committed Jun 21, 2022
1 parent 90585c6 commit e4f1dbc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Creates initial ramdisk images for preloading modules
--kernel-cmdline [PARAMETERS]
Specify default kernel command line parameters.
--strip Strip binaries in the initramfs.
--aggresive-strip Strip more than just debug symbol and sections,
--aggressive-strip Strip more than just debug symbol and sections,
for a smaller initramfs build. The --strip option must
also be specified.
--nostrip Do not strip binaries in the initramfs.
Expand Down Expand Up @@ -409,7 +409,7 @@ rearrange_params() {
--long print-cmdline \
--long kernel-cmdline: \
--long strip \
--long aggresive-strip \
--long aggressive-strip \
--long nostrip \
--long hardlink \
--long nohardlink \
Expand Down Expand Up @@ -734,7 +734,7 @@ while :; do
early_microcode_l="no"
;;
--strip) do_strip_l="yes" ;;
--aggresive-strip) aggresive_strip_l="yes" ;;
--aggressive-strip) aggressive_strip_l="yes" ;;
--nostrip) do_strip_l="no" ;;
--hardlink) do_hardlink_l="yes" ;;
--nohardlink) do_hardlink_l="no" ;;
Expand Down Expand Up @@ -1033,7 +1033,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
[[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l
[[ $do_strip_l ]] && do_strip=$do_strip_l
[[ $do_strip ]] || do_strip=yes
[[ $aggresive_strip_l ]] && aggresive_strip=$aggresive_strip_l
[[ $aggressive_strip_l ]] && aggressive_strip=$aggressive_strip_l
[[ $do_hardlink_l ]] && do_hardlink=$do_hardlink_l
[[ $do_hardlink ]] || do_hardlink=yes
[[ $prefix_l ]] && prefix=$prefix_l
Expand Down Expand Up @@ -2235,7 +2235,7 @@ if [[ $do_strip == yes ]]; then
fi
done
if [[ $aggresive_strip == yes ]]; then
if [[ $aggressive_strip == yes ]]; then
# `eu-strip` and `strip` both strips all unneeded parts by default
strip_args=(-p)
else
Expand Down
2 changes: 1 addition & 1 deletion man/dracut.8.asc
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ example:
**--strip**::
Strip binaries in the initramfs (default).
**--aggresive-strip**::
**--aggressive-strip**::
Strip more than just debug symbol and sections, for a smaller initramfs
build. The --strip option must also be specified.
Expand Down
2 changes: 1 addition & 1 deletion man/dracut.conf.5.asc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Configuration files must have the extension .conf; other extensions are ignored.
*do_strip=*"__{yes|no}__"::
Strip binaries in the initramfs (default=yes).

*aggresive_strip=*"__{yes|no}__"::
*aggressive_strip=*"__{yes|no}__"::
Strip more than just debug symbol and sections, for a smaller initramfs
build. The "do_strip=yes" option must also be specified (default=no).

Expand Down
2 changes: 1 addition & 1 deletion shell-completion/bash/dracut
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ _dracut() {
--xz --zstd --no-compress --gzip --list-modules --show-modules --keep
--printsize --regenerate-all --noimageifnotneeded --early-microcode
--no-early-microcode --print-cmdline --reproducible --uefi
--enhanced-cpio --rebuild --aggresive-strip --hostonly-cmdline
--enhanced-cpio --rebuild --aggressive-strip --hostonly-cmdline
--no-hostonly-cmdline --no-hostonly-default-device --nofscks
--hostonly-i18n --no-hostonly-i18n --lzo --lz4 --no-reproducible
--no-uefi --no-machineid --version
Expand Down

0 comments on commit e4f1dbc

Please sign in to comment.