]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut): typo error 'aggresive' -> 'aggressive'
authorKairui Song <kasong@tencent.com>
Tue, 21 Jun 2022 06:54:03 +0000 (14:54 +0800)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Tue, 21 Jun 2022 19:33:49 +0000 (19:33 +0000)
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>
dracut.sh
man/dracut.8.asc
man/dracut.conf.5.asc
shell-completion/bash/dracut

index a1ea1bc32443726ebb5d1c542bf6063ca30b1043..8c70befc017f7bb013774abfd06759b043107f74 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -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.
@@ -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 \
@@ -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" ;;
@@ -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
@@ -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
index bfb86f5de14f837af074490afdac9d4bd9375c22..7930ebb02819861265aa13ad98a208d2c43fbee0 100644 (file)
@@ -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.
 
index 96c801292f9b86d6a428f8ff435e415c2d65e9d5..d9694a5df0e26f0d136a8a8dce8a45ddd1d73490 100644 (file)
@@ -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).
 
index 86de20715ed2a16e8258a708fbfdf7a6f9ae3354..dbc66964401c175e49fe79198d45d2b71d70cbdd 100644 (file)
@@ -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