Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Flashing fails when image name different from archive name #33

Closed
MathiasRenner opened this issue Feb 11, 2016 · 3 comments
Closed
Assignees

Comments

@MathiasRenner
Copy link
Collaborator

This (see headline) holds e.g. when flashing Hypriot Cluster Lab. Then this is what happens:

$ ./flash hypriot_20160121-235123_clusterlab.img.zip
/usr/bin/unzip
Uncompressing /home/[...]/hypriot_20160121-235123_clusterlab.img.zip ...
Archive:  /home/[...]/hypriot_20160121-235123_clusterlab.img.zip
  inflating: /tmp/hypriot-rpi-20160121-235123.img  
Use /tmp/  hypriot-rpi-20160121-235123.img
Filesystem                  1K-blocks      Used Available Use% Mounted on
udev                          8046676         4   8046672   1% /dev
tmpfs                         1612604      1816   1610788   1% /run
[...]

Is /dev/mmcblk0 correct? y
Synchronizing Filesystems
[sudo] password for ###: 
Unmounting /dev/mmcblk0 ...
Flashing /tmp/  hypriot-rpi-20160121-235123.img to /dev/mmcblk0 ...
stat: cannot stat ‘hypriot-rpi-20160121-235123.img’: No such file or directory
cat: /tmp/: Is a directory
cat: hypriot-rpi-20160121-235123.img: No such file or directory
   0B 0:00:00 [   0B/s] [>                                     ]  0%            
0+0 records in
0+0 records out
0 bytes (0 B) copied, 6,177e-05 s, 0,0 kB/s
Flushing Buffers
Mounting Disk
Mounting /dev/mmcblk0p1 to customize
Unmounting /dev/mmcblk0 ...
Finished.

If archive name is identical with image name inside the archive, everything works fine.

@StefanScherer
Copy link
Member

@StefanScherer
Copy link
Member

Oh, I see: Flashing /tmp/ hypriot-rpi-20160121-235123.img there are blanks in the path.

@StefanScherer
Copy link
Member

We should cherry-pick jeff-99@7f0a6b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants