Skip to content

Commit

Permalink
Fix Boot Packinf
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Dec 16, 2023
1 parent 54e0350 commit 64ecc91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,11 +1182,13 @@ def dboot(infile, orig):
except Exception as e:
print("Ramdisk Not Found.. %s" % e)
return
cpio = ebinner + os.sep + "cpio"
cpio = utils.findfile("cpio.exe" if os.name != 'posix' else 'cpio',
ebinner).replace(
'\\', "/")
call(exe="busybox ash -c \"find | sed 1d | %s -H newc -R 0:0 -o -F ../ramdisk-new.cpio\"" % cpio, sp=1,
shstate=True)
os.chdir(infile + os.sep)
with open(infile + os.sep + "comp", "r", encoding='utf-8') as compf:
os.chdir(infile)
with open("comp", "r", encoding='utf-8') as compf:
comp = compf.read()
print("Compressing:%s" % comp)
if comp != "unknow":
Expand Down

0 comments on commit 64ecc91

Please sign in to comment.