Skip to content

Commit e4f1dbc

Browse files
ryncsnjohannbg
authored andcommitted
fix(dracut): typo error 'aggresive' -> 'aggressive'
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 <kasong@tencent.com>
1 parent 90585c6 commit e4f1dbc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dracut.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Creates initial ramdisk images for preloading modules
124124
--kernel-cmdline [PARAMETERS]
125125
Specify default kernel command line parameters.
126126
--strip Strip binaries in the initramfs.
127-
--aggresive-strip Strip more than just debug symbol and sections,
127+
--aggressive-strip Strip more than just debug symbol and sections,
128128
for a smaller initramfs build. The --strip option must
129129
also be specified.
130130
--nostrip Do not strip binaries in the initramfs.
@@ -409,7 +409,7 @@ rearrange_params() {
409409
--long print-cmdline \
410410
--long kernel-cmdline: \
411411
--long strip \
412-
--long aggresive-strip \
412+
--long aggressive-strip \
413413
--long nostrip \
414414
--long hardlink \
415415
--long nohardlink \
@@ -734,7 +734,7 @@ while :; do
734734
early_microcode_l="no"
735735
;;
736736
--strip) do_strip_l="yes" ;;
737-
--aggresive-strip) aggresive_strip_l="yes" ;;
737+
--aggressive-strip) aggressive_strip_l="yes" ;;
738738
--nostrip) do_strip_l="no" ;;
739739
--hardlink) do_hardlink_l="yes" ;;
740740
--nohardlink) do_hardlink_l="no" ;;
@@ -1033,7 +1033,7 @@ stdloglvl=$((stdloglvl + verbosity_mod_l))
10331033
[[ $drivers_dir_l ]] && drivers_dir=$drivers_dir_l
10341034
[[ $do_strip_l ]] && do_strip=$do_strip_l
10351035
[[ $do_strip ]] || do_strip=yes
1036-
[[ $aggresive_strip_l ]] && aggresive_strip=$aggresive_strip_l
1036+
[[ $aggressive_strip_l ]] && aggressive_strip=$aggressive_strip_l
10371037
[[ $do_hardlink_l ]] && do_hardlink=$do_hardlink_l
10381038
[[ $do_hardlink ]] || do_hardlink=yes
10391039
[[ $prefix_l ]] && prefix=$prefix_l
@@ -2235,7 +2235,7 @@ if [[ $do_strip == yes ]]; then
22352235
fi
22362236
done
22372237
2238-
if [[ $aggresive_strip == yes ]]; then
2238+
if [[ $aggressive_strip == yes ]]; then
22392239
# `eu-strip` and `strip` both strips all unneeded parts by default
22402240
strip_args=(-p)
22412241
else

man/dracut.8.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ example:
265265
**--strip**::
266266
Strip binaries in the initramfs (default).
267267
268-
**--aggresive-strip**::
268+
**--aggressive-strip**::
269269
Strip more than just debug symbol and sections, for a smaller initramfs
270270
build. The --strip option must also be specified.
271271

man/dracut.conf.5.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Configuration files must have the extension .conf; other extensions are ignored.
106106
*do_strip=*"__{yes|no}__"::
107107
Strip binaries in the initramfs (default=yes).
108108

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

shell-completion/bash/dracut

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _dracut() {
3333
--xz --zstd --no-compress --gzip --list-modules --show-modules --keep
3434
--printsize --regenerate-all --noimageifnotneeded --early-microcode
3535
--no-early-microcode --print-cmdline --reproducible --uefi
36-
--enhanced-cpio --rebuild --aggresive-strip --hostonly-cmdline
36+
--enhanced-cpio --rebuild --aggressive-strip --hostonly-cmdline
3737
--no-hostonly-cmdline --no-hostonly-default-device --nofscks
3838
--hostonly-i18n --no-hostonly-i18n --lzo --lz4 --no-reproducible
3939
--no-uefi --no-machineid --version

0 commit comments

Comments
 (0)