80-make-initfs: fix the silliest mistake ever

*Of course* the "weird" [ ... ] || ... construct meant to avoid
the non-zero exit status of the whole thing wasn't employed
where it actually does make the difference!

Thanks ildar@ for hitting and reporting this, as in

  + verbose '/usr/lib64/propagator exists'
  + '[' -n '' ']'
  mki-scripts: .../stage1/scripts.d/80-make-initfs: unable to run script.
  make[3]: *** [run-scripts] Error 1
This commit is contained in:
Michael Shigorin 2012-11-10 17:51:14 +04:00
parent 45cddfd25a
commit c30490e2e8

View File

@ -1,7 +1,7 @@
#!/bin/sh -efux #!/bin/sh -efux
# NB: /etc/initrd.mk carefully prepared by earlier scripts # NB: /etc/initrd.mk carefully prepared by earlier scripts
verbose() { [ -n "$GLOBAL_VERBOSE" ] && echo "** 80-make-initfs: $@" >&2; } verbose() { [ -z "$GLOBAL_VERBOSE" ] || echo "** 80-make-initfs: $@" >&2; }
kver="$(rpm -qa 'kernel-image*' \ kver="$(rpm -qa 'kernel-image*' \
--qf '%{installtime} %{version}-%{name}-%{release}\n' \ --qf '%{installtime} %{version}-%{name}-%{release}\n' \