Bug 689360

Summary: livcd-iso-to-disk aborts with empty device and proper SYSLINUXPATH setting
Product: [Fedora] Fedora Reporter: Frederick Grose <fgrose>
Component: livecd-toolsAssignee: Brian Lane <bcl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: adam.stokes, bcl, bruno, dhuff, Jasper.Hartline, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-11 23:20:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Fix return code failure with zero-valued arithmetic expression none

Description Frederick Grose 2011-03-21 08:08:46 UTC
Created attachment 486562 [details]
Fix return code failure with zero-valued arithmetic expression

The new autoexit setting, set -e, caused a runtime error in the case of a zero value in the arithmetic expression command, ((tbd += <du value>)), that is when both tbd and the du value were 0.

This occurs when the installation device is empty and there is no /syslinux directory to size.

The attached patch changes the command to tdb=$((tbd + <du value>)), which fixes the problem because the assignment operation returns "SUCCESS".