diff options
author | VG <vg@devys.org> | 2016-11-10 00:28:06 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2016-11-10 00:28:06 +0100 |
commit | 129744877a42e459dba5e8030694797c61aef1af (patch) | |
tree | f37b16e09cf65e576e08d05b69214fb2e96f640f | |
parent | 374a86b3a168293dc1ea7896d9a13921f4d8e332 (diff) | |
download | debootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.tar.gz debootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.tar.bz2 debootstrap-scripts-129744877a42e459dba5e8030694797c61aef1af.zip |
redirect stdout of ls command correctly
-rwxr-xr-x | rpi2-debian-stdkernel/copy-to-sdcard.py | 3 |
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) |