Hi,

Simple thing. The spec file for drbd-utils (drbd.spec.in) uses the "seq" command from coreutils. However, there is no rpm dependency towards coreutils. Meaning that the installation could fail if drbd-utils tried to install before coreutils.

Would it be possible to add coreutils as a dependency or change the code so it uses bash or perhaps a POSIX style loop (as the executor is /bin/sh)?

Best Regards
Richard

Example of bash patch
---------------------

diff --git a/drbd.spec.in b/drbd.spec.in
index 10eea8e..d44e27d 100644
--- a/drbd.spec.in
+++ b/drbd.spec.in
@@ -306,7 +306,7 @@ rm -rf %{buildroot}
 %post utils
 chkconfig --add drbd
 %if %{without udev}
-for i in `seq 0 15` ; do
+for i in {0..15}; do
     test -b /dev/drbd$i || mknod -m 0660 /dev/drbd$i b 147 $i;
 done
 %endif #without udev
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to