Re: [PATCH] Fail to boot if mediacheck fails (#817419)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 09.05.2012 20:15, schrieb Brian C. Lane:
> From: "Brian C. Lane" <bcl@xxxxxxxxxx>
> 
> The return value of checkisomd5 was being ignored.
> ---
>  modules.d/90dmsquash-live/dmsquash-live-root.sh |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
> index 2aaec28..fdbd6f5 100755
> --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
> +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
> @@ -33,7 +33,7 @@ fi
>  getarg rd.live.check check || check=""
>  if [ -n "$check" ]; then
>      [ -x /bin/plymouth ] && /bin/plymouth --hide-splash
> -    checkisomd5 --verbose $livedev || :
> +    checkisomd5 --verbose $livedev
>      if [ $? -ne 0 ]; then
>          die "CD check failed!"
>          exit 1


So, it was wrong from the beginning on... rofl..


commit c56b63d1bd06e3eaf149502d7c46c59a5978fd44
Author: Jeremy Katz <katzj@xxxxxxxxxx>
Date:   Wed Jul 22 16:06:29 2009 -0400

    Support checking the iso

    Support checking the iso image with checkisomd5 if available
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux