You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Im trying to patch the boot partition for my 2nd generation device.
However when running the python script i get this permission error:
F:\Documents\ereader\StorytelReaderMods>python3 tools/repack.py --boot_img tmp/boot.img --out_img tmp/boot-gen2-patched.img --mods_dir mods/gen2/
Using work dir: C:\Users\rasmu\AppData\Local\Temp\tmpb_9u06ip
Unpacking F:\Documents\ereader\StorytelReaderMods\tmp\boot.img
Applying patch file: F:\Documents\ereader\StorytelReaderMods\mods\gen2\01.patch
Copying F:\Documents\ereader\StorytelReaderMods\mods\gen2\files\init to C:\Users\rasmu\AppData\Local\Temp\tmpb_9u06ip\ramdisk.extracted\init
Copying F:\Documents\ereader\StorytelReaderMods\mods\gen2\files\.backup\.magisk to C:\Users\rasmu\AppData\Local\Temp\tmpb_9u06ip\ramdisk.extracted\.backup\.magisk
Traceback (most recent call last):
File "F:\Documents\ereader\StorytelReaderMods\tools\repack.py", line 82, in <module>
main()
File "F:\Documents\ereader\StorytelReaderMods\tools\repack.py", line 73, in main
repack(
File "F:\Documents\ereader\StorytelReaderMods\tools\repack.py", line 60, in repack
shutil.copyfile(in_file, out_file, follow_symlinks=False)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.1520.0_x64__qbz5n2kfra8p0\Lib\shutil.py", line 262, in copyfile
with open(dst, 'wb') as fdst:
^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\rasmu\\AppData\\Local\\Temp\\tmpb_9u06ip\\ramdisk.extracted\\.backup\\.magisk'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
Im trying to patch the boot partition for my 2nd generation device.
However when running the python script i get this permission error:
I have tried:
I am running Windows :)
Beta Was this translation helpful? Give feedback.
All reactions