Bug 689360 - livcd-iso-to-disk aborts with empty device and proper SYSLINUXPATH setting
Summary: livcd-iso-to-disk aborts with empty device and proper SYSLINUXPATH setting
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-21 08:08 UTC by Frederick Grose
Modified: 2011-08-11 23:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-11 23:20:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix return code failure with zero-valued arithmetic expression (1.78 KB, patch)
2011-03-21 08:08 UTC, Frederick Grose
no flags Details | Diff

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".


Note You need to log in before you can comment on or make changes to this bug.