Merge lp:~niedbalski/ubuntu/vivid/curtin/fix-1263181 into lp:ubuntu/vivid/curtin
Proposed by
Jorge Niedbalski
on 2015-02-18
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Merge reported by: | Sebastien Bacher | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~niedbalski/ubuntu/vivid/curtin/fix-1263181 | ||||
| Merge into: | lp:ubuntu/vivid/curtin | ||||
| Diff against target: |
91 lines (+17/-8) 3 files modified
curtin/block/__init__.py (+8/-2) curtin/commands/block_meta.py (+3/-0) helpers/common (+6/-6) |
||||
| To merge this branch: | bzr merge lp:~niedbalski/ubuntu/vivid/curtin/fix-1263181 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ubuntu branches | 2015-02-18 | Pending | |
|
Review via email:
|
|||
Description of the Change
Fixes LP bug: #1263181
To post a comment you must log in.
| Scott Moser (smoser) wrote : | # |
| Scott Moser (smoser) wrote : | # |
I'll be back in on tuesday morning and will try to take a further look at this then.
Again, I'm sorry i've not had time to get to this earlier.
| Firl (celpa-firl) wrote : | # |
Any directions for me to be able to test this? I have a DL 380 with 2 drives that I am trying to use for MaaS and it is showing up in lshw as a cciss device
| Scott Moser (smoser) wrote : | # |
the fix should be in wily.
you can just install the curtin debs from wily.
download from https:/
you probably need curtin-common and python-curtin.
| Sebastien Bacher (seb128) wrote : | # |
seems like that was fixed in wily/vivid
https:/


Jorge,
I'm really sorry this has taken so long to get to.
I'd appreciate you testing with the branch I pushed to lp:~smoser/ubuntu/vivid/curtin/fix-1263181 .
It has a small change, see the comment in the commit for the issue it (untested, but attempts to resolve).
We need to figure out how to reliably do all this stuff, addressing inconsistently named devices via more reliable mechanisms.
That said, i'm willing to take this if you test my branch there, and then add a function to helpers/common to reduce your 3 checks to use that.
Maybe something like:
path_for_ existing_ partition( ) { $partno" "${blockdev} p${partno} "; do
local blockdev="$1" partno="$2"
for p in "${blockdev}
[ -b "$p" ] && _RET="$p" && return 0
done
return 1
}
then: existing_ partition "$target" 1 ||
path_for_
{ error "no partition found for part 1 on $target"; return 1; }
Also, please update to address the check for partition 15 also.
[ -b "${target}1" ]