Skip to contentSkip to conversation

98usrmount: depend on fs-lib

PATCH New Amadeusz Żołnowski 1 participant 4 messages Jun 25, 2012 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 98usrmount: depend on fs-lib

---
 modules.d/98usrmount/module-setup.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/98usrmount/module-setup.sh +1 -1
index 5844383..69d22d8 100755
@@ -8,7 +8,7 @@ check() {
 }
 
 depends() {
-    return 0
+    echo 'fs-lib'
 }
 
 install() {
Signature · 1 line
1.7.8.6

A message that is not in the archive (sent off-list or not yet received): 1340641923-14477-1-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org

#2 lore raw

PATCH 2/4 man pages: hostonly mode generates host-specific configuration

This fact hasn't been mentioned.

---
 dracut.8.asc      |    4 ++--
 dracut.conf.5.asc |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
dracut.8.asc +2 -2
index cadd740..bab5996 100644
@@ -232,8 +232,8 @@ Default:
     This is useful when running dracut from a git checkout.
 
 **-H, --hostonly**::
-    Host-Only mode: Install only what is needed for booting
-    the local host instead of a generic host.
+    Host-Only mode: Install only what is needed for booting the local host
+    instead of a generic host and generate host-specific configuration.
 +
 [WARNING]
 ====
dracut.conf.5.asc +2 -1
index 017a221..d17477d 100644
@@ -65,7 +65,8 @@ line are not interpreted.
     Strip binaries in the initramfs (default=yes)
 
 *hostonly=*"__{yes|no}__"::
-    Host-Only mode: Install only what is needed for booting the local host instead of a generic host.
+    Host-Only mode: Install only what is needed for booting the local host
+    instead of a generic host and generate host-specific configuration.
 
 *tmpdir=*"__<temporary directory>__"::
     Specify temporary directory to use.
Signature · 1 line
1.7.8.6

A message that is not in the archive (sent off-list or not yet received): 1340641923-14477-2-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org

#4 lore raw

PATCH 3/4 dracut-lib.sh: Use "$*" instead of "$@" in warn, info, and so on...

"$@" might cause some uneccessary word breaking.

---
 modules.d/99base/dracut-lib.sh |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
modules.d/99base/dracut-lib.sh +9 -9
index 5dc3fbd..e63f3f0 100755
@@ -297,12 +297,12 @@ source_conf() {
 
 die() {
     {
-        echo "<24>dracut: FATAL: $@";
+        echo "<24>dracut: FATAL: $*";
         echo "<24>dracut: Refusing to continue";
     } > /dev/kmsg
 
     {
-        echo "warn dracut: FATAL: \"$@\"";
+        echo "warn dracut: FATAL: \"$*\"";
         echo "warn dracut: Refusing to continue";
     } >> $hookdir/emergency/01-die.sh
 
@@ -327,25 +327,25 @@ if [ ! -x /lib/systemd/systemd ]; then
 
     warn() {
         check_quiet
-        echo "<28>dracut Warning: $@" > /dev/kmsg
-        echo "dracut Warning: $@" >&2
+        echo "<28>dracut Warning: $*" > /dev/kmsg
+        echo "dracut Warning: $*" >&2
     }
 
     info() {
         check_quiet
-        echo "<30>dracut: $@" > /dev/kmsg
+        echo "<30>dracut: $*" > /dev/kmsg
         [ "$DRACUT_QUIET" != "yes" ] && \
-            echo "dracut: $@"
+            echo "dracut: $*"
     }
 
 else
 
     warn() {
-        echo "Warning: $@" >&2
+        echo "Warning: $*" >&2
     }
 
     info() {
-        echo "$@"
+        echo "$*"
     }
 
 fi
@@ -827,7 +827,7 @@ emergency_shell()
     fi
 
     echo ; echo
-    warn $@
+    warn "$*"
     source_hook "$hook"
     echo
 
Signature · 1 line
1.7.8.6

A message that is not in the archive (sent off-list or not yet received): 1340641923-14477-3-git-send-email-aidecoe-2qtfh70TtYba5EbDDlwbIw@public.gmane.org

#6 lore raw

PATCH 4/4 90dmsquash-live: don't source fs-lib.sh as it is not used

---
 modules.d/90dmsquash-live/dmsquash-live-root.sh |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
modules.d/90dmsquash-live/dmsquash-live-root.sh +0 -1
index 990a55b..08f2381 100755
@@ -3,7 +3,6 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
-type det_fs >/dev/null 2>&1 || . /lib/fs-lib.sh
 
 PATH=/usr/sbin:/usr/bin:/sbin:/bin
 
Signature · 1 line
1.7.8.6