hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

[#118]Change block device with path for Linux OS #124

Closed ketoketo closed 6 years ago

ketoketo commented 6 years ago

Block device is not displayed in Linux OS so processing can not be completed.So, Change block device with path for Linux OS

StefanScherer commented 6 years ago

Thank you!

StefanScherer commented 6 years ago

LGTM. I've tested this in my Vagrant box, but I don't have any mmcblk devices in there, only sda for the internal hard drive and sdb for my mounted SD card.

I've played with lsblk a little bit and thought if this line would be better:

lsblk -p -n -o NAME,HOTPLUG -d | grep " 1" | sed 's/ .*$//'

It searches for HOTPLUG devices only. WDYT @tMatSuZ?