aboutsummaryrefslogtreecommitdiffstats
path: root/rpi2-debian-stdkernel
diff options
context:
space:
mode:
authorVG <vg@devys.org>2016-11-10 00:28:06 +0100
committerVG <vg@devys.org>2016-11-10 00:28:06 +0100
commit129744877a42e459dba5e8030694797c61aef1af (patch)
treef37b16e09cf65e576e08d05b69214fb2e96f640f /rpi2-debian-stdkernel
parent374a86b3a168293dc1ea7896d9a13921f4d8e332 (diff)
downloaddebootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.tar.gz
debootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.tar.bz2
debootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.zip
redirect stdout of ls command correctly
Diffstat (limited to 'rpi2-debian-stdkernel')
-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)