The size needs to be updated after the sysfs path has been setup.
Related: rhbz#1252703
This is fixed on rhel7-branch but not on master:
https://github.com/rhinstaller/blivet/commit/828ddb09535357a35bde6b3b18ae...
The result is --image installs don't work b/c the device has size 0 and anaconda
ignores it. I've also added a test case for this. It looks like this test should
probably go into anaconda but I'm not sure if the infrastructure there allows for that
that's why I've added it here.
--
To view this pull request on github, visit
https://github.com/rhinstaller/blivet/pull/267