From d6833ec9ee2be3a94970bdf3bfbcaf3c610effa9 Mon Sep 17 00:00:00 2001 From: VG Date: Thu, 10 Nov 2016 00:22:19 +0100 Subject: fix debootstrap directory path --- rpi2-debian-stdkernel/copy-to-sdcard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpi2-debian-stdkernel/copy-to-sdcard.py b/rpi2-debian-stdkernel/copy-to-sdcard.py index 921982d..bb2c652 100755 --- a/rpi2-debian-stdkernel/copy-to-sdcard.py +++ b/rpi2-debian-stdkernel/copy-to-sdcard.py @@ -48,12 +48,12 @@ def copy_to_boot(firmware_dir, boot_mountpoint): + os.path.basename(path.rstrip('/'))) shutil.copy('files/cmdline.txt', boot_mountpoint) shutil.copy('files/config.txt', boot_mountpoint) - shutil.copy('debootstrap/vmlinuz', join(boot_mountpoint, 'vmlinuz'), + shutil.copy('debootstrapdir/vmlinuz', join(boot_mountpoint, 'vmlinuz'), follow_symlinks=True) - shutil.copy('debootstrap/initrd.img', join(boot_mountpoint, 'initrd.img'), + shutil.copy('debootstrapdir/initrd.img',join(boot_mountpoint, 'initrd.img'), follow_symlinks=True) content = run(['ls', '-lah', - 'debootstrap/vmlinuz', 'debootstrap/initrd.img']) + 'debootstrapdir/vmlinuz', 'debootstrapdir/initrd.img']) with open(join(boot_mountpoint, 'versions.txt'), 'wb') as f: f.write(content) -- cgit v1.2.3