← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] ~paul-meyer/cloud-init:fix-raw-ephemeral-disk into cloud-init:master

 

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.


Follow ups

References