]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/dracut-lib.sh: better error message for deprecated cmdline options
authorHarald Hoyer <harald@redhat.com>
Fri, 28 Sep 2012 11:04:20 +0000 (13:04 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 28 Sep 2012 13:29:53 +0000 (15:29 +0200)
modules.d/99base/dracut-lib.sh

index 1d90010a153496a829259bb392d221b108e1f784..294f29befe78a81684e152f6403a5af40b8eba7e 100755 (executable)
@@ -109,7 +109,7 @@ getarg() {
             -d) _deprecated=1; shift;;
             -y) if _dogetarg $2 >/dev/null; then
                     if [ "$_deprecated" = "1" ]; then
-                        [ -n "$_newoption" ] && warn "Option '$2' is deprecated, use '$_newoption' instead." || warn "Option '$2' is deprecated."
+                        [ -n "$_newoption" ] && warn "Kernel command line option '$2' is deprecated, use '$_newoption' instead." || warn "Option '$2' is deprecated."
                     fi
                     echo 1
                     debug_on
@@ -120,7 +120,7 @@ getarg() {
             -n) if _dogetarg $2 >/dev/null; then
                     echo 0;
                     if [ "$_deprecated" = "1" ]; then
-                        [ -n "$_newoption" ] && warn "Option '$2' is deprecated, use '$_newoption=0' instead." || warn "Option '$2' is deprecated."
+                        [ -n "$_newoption" ] && warn "Kernel command line option '$2' is deprecated, use '$_newoption=0' instead." || warn "Option '$2' is deprecated."
                     fi
                     debug_on
                     return 1
@@ -132,7 +132,7 @@ getarg() {
                 fi
                 if _dogetarg $1; then
                     if [ "$_deprecated" = "1" ]; then
-                        [ -n "$_newoption" ] && warn "Option '$1' is deprecated, use '$_newoption' instead." || warn "Option '$1' is deprecated."
+                        [ -n "$_newoption" ] && warn "Kernel command line option '$1' is deprecated, use '$_newoption' instead." || warn "Option '$1' is deprecated."
                     fi
                     debug_on
                     return 0;