aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpi2-debian-stdkernel/copy-to-sdcard.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpi2-debian-stdkernel/copy-to-sdcard.py b/rpi2-debian-stdkernel/copy-to-sdcard.py
index 9b6805f..51347d8 100755
--- a/rpi2-debian-stdkernel/copy-to-sdcard.py
+++ b/rpi2-debian-stdkernel/copy-to-sdcard.py
@@ -49,7 +49,8 @@ def copy_to_boot(firmware_dir, boot_mountpoint):
shutil.copy('debootstrapdir/initrd.img',join(boot_mountpoint, 'initrd.img'),
follow_symlinks=True)
content = run(['ls', '-lah',
- 'debootstrapdir/vmlinuz', 'debootstrapdir/initrd.img'])
+ 'debootstrapdir/vmlinuz', 'debootstrapdir/initrd.img'],
+ check=True, stdout=subprocess.PIPE).stdout
with open(join(boot_mountpoint, 'versions.txt'), 'wb') as f:
f.write(content)