Hey, thanks for your patience.
I'm going to pull this.that module can definitely use some cleanup.
curtin has lots of stuff that does this sort of thing better.

For something like "find out how big a block device is" in sectors we could do 
something like:

$ sudo blockdev --getsize /dev/sdb
83886080

$ cat /sys/class/block/sdb/size 
83886080

For that value in bytes:
 $ sudo blockdev --getsize64 /dev/sdb
42949672960


-- 
https://code.launchpad.net/~paul-meyer/cloud-init/+git/cloud-init/+merge/304033
Your team cloud init development team is requested to review the proposed merge 
of ~paul-meyer/cloud-init:fix-raw-ephemeral-disk into cloud-init:master.

_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to     : cloud-init-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to