* [PATCH] parse-lvm.sh: fix for generated initqueue/finished script
@ 2011-07-28 12:40 Michal Soltys
[not found] ` <1311856810-2481-1-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Michal Soltys @ 2011-07-28 12:40 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
The script that was generated always returned the status of the last test
condition, potentially missing any earlier non-existing devices.
The change assures, that the script returns 0 only if all expected
devices are found.
Signed-off-by: Michal Soltys <soltys-R61QfzASbfY@public.gmane.org>
---
modules.d/90lvm/parse-lvm.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules.d/90lvm/parse-lvm.sh b/modules.d/90lvm/parse-lvm.sh
index 2e21d82..b85a1ac 100755
--- a/modules.d/90lvm/parse-lvm.sh
+++ b/modules.d/90lvm/parse-lvm.sh
@@ -10,7 +10,7 @@ if ! getargbool 1 rd.lvm -n rd_NO_LVM; then
rm -f /etc/udev/rules.d/64-lvm*.rules
else
for dev in $(getargs rd.lvm.vg rd_LVM_VG=) $(getargs rd.lvm.lv rd_LVM_LV=); do
- printf '[ -e "/dev/%s" ]\n' $dev \
+ printf '[ -e "/dev/%s" ] || return 1\n' $dev \
>> $hookdir/initqueue/finished/lvm.sh
{
printf '[ -e "/dev/%s" ] || ' $dev
--
1.7.5.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] parse-lvm.sh: fix for generated initqueue/finished script
[not found] ` <1311856810-2481-1-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
@ 2011-08-12 6:07 ` Harald Hoyer
0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2011-08-12 6:07 UTC (permalink / raw)
To: Michal Soltys; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA
On 28.07.2011 14:40, Michal Soltys wrote:
> The script that was generated always returned the status of the last test
> condition, potentially missing any earlier non-existing devices.
>
> The change assures, that the script returns 0 only if all expected
> devices are found.
>
> Signed-off-by: Michal Soltys <soltys-R61QfzASbfY@public.gmane.org>
> ---
> modules.d/90lvm/parse-lvm.sh | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules.d/90lvm/parse-lvm.sh b/modules.d/90lvm/parse-lvm.sh
> index 2e21d82..b85a1ac 100755
> --- a/modules.d/90lvm/parse-lvm.sh
> +++ b/modules.d/90lvm/parse-lvm.sh
> @@ -10,7 +10,7 @@ if ! getargbool 1 rd.lvm -n rd_NO_LVM; then
> rm -f /etc/udev/rules.d/64-lvm*.rules
> else
> for dev in $(getargs rd.lvm.vg rd_LVM_VG=) $(getargs rd.lvm.lv rd_LVM_LV=); do
> - printf '[ -e "/dev/%s" ]\n' $dev \
> + printf '[ -e "/dev/%s" ] || return 1\n' $dev \
> >> $hookdir/initqueue/finished/lvm.sh
> {
> printf '[ -e "/dev/%s" ] || ' $dev
pushed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-12 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28 12:40 [PATCH] parse-lvm.sh: fix for generated initqueue/finished script Michal Soltys
[not found] ` <1311856810-2481-1-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
2011-08-12 6:07 ` Harald Hoyer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.