[SRU] Option --net fails (other than for Class C)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-vm-builder (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ubuntu-vm-builder
$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
$ dpkg --status ubuntu-vm-builder | grep -e Status -e Version
Status: install ok installed
Version: 0.4-0ubuntu0.1
Problem:
Specifying --net <value> on the command line is ignored by the script. Instead, the script auto-calculates a value based on an assumed Class C (24 bit) IP address. For instance, the command line options --ip 10.5.20.57 --mask 255.255.0.0 --net 10.5.0.0 --bcast 10.5.255.255 will produce a response of "setting network to 10.5.20.0" indicating that the --net option/value from the command line was not detected and the NET value was auto-calculated (incorrectly).
Cause:
Everywhere within the script, the Network address is referenced as $NET; however, line 287 sets the value of $NETWORK when the --net command line option is passed, not $NET (as it should).
Solution:
Remove the characters WORK from line 287 of the script.
Related branches
description: | updated |
Changed in ubuntu-vm-builder: | |
milestone: | none → ubuntu-8.04.1 |
Changed in ubuntu-vm-builder: | |
milestone: | ubuntu-8.04.1 → none |
Thanks for catching this. Will work on it shortly.