Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

[bug report] can't extract some ramdisk on windows/cygwin #29

Open
13584452567 opened this issue Jun 18, 2024 · 13 comments
Open

[bug report] can't extract some ramdisk on windows/cygwin #29

13584452567 opened this issue Jun 18, 2024 · 13 comments
Labels
bug Something isn't working windows Issues on Windows

Comments

@13584452567
Copy link

Basic information

  • Am I using debug build: NO
  • OS and machine: Windows 10 22H2 19045.4529
  • ZIP file name of the magiskboot binary I am using: magiskboot-e159716-release-windows-mingw-w64-msvcrt-i686-standalone.zip

Description of the bug

when i tried to unpack ramdisk.cpio,it return a error

Expected behavior

extract all files in ramdisk.cpio

Bug hehavior

magiskboot.exe cpio ./ramdisk.cpio extract
Loading cpio: [ramdisk.cpio]
Extracting entry [acct] to [acct]
Extracting entry [apex] to [apex]
Extracting entry [bin] to [bin]
unknown entry type
Failed to process cpio

Extra links

ramdisk.cpio

@13584452567 13584452567 added the unconfirmed Unconfirmed bug report, be patient... label Jun 18, 2024
@13584452567 13584452567 changed the title [bug report] CHANGE ME TO A SHORT TITLE [bug report] unable to extract ramdisk.cpio Jun 18, 2024
@13584452567
Copy link
Author

ramdisk.cpio.zip

@ghost ghost added bug Something isn't working windows Issues on Windows and removed unconfirmed Unconfirmed bug report, be patient... labels Jun 18, 2024
@ghost
Copy link

ghost commented Jun 18, 2024

thanks for reporting , will be looking into it when i have time

@ghost
Copy link

ghost commented Jun 18, 2024

currently i suspect its a bug in my winsup stub code

@ghost
Copy link

ghost commented Jun 18, 2024

can't produce on linux, issue is windows only

@ghost ghost changed the title [bug report] unable to extract ramdisk.cpio [bug report] unable extract some ramdisk on windows Jun 18, 2024
@ghost ghost changed the title [bug report] unable extract some ramdisk on windows [bug report] can't extract some ramdisk on windows Jun 18, 2024
@13584452567
Copy link
Author

can't produce on linux, issue is windows only

yes,i have tried macos and linux(both x86_64 and arm64).both of them can extract ramdisk.cpio.only windows can't handle this file

@ghost
Copy link

ghost commented Jun 18, 2024

interesting, also thanks for the details !

@ghost
Copy link

ghost commented Jun 18, 2024

btw maybe try to use the cygwin build https://github.com/ookiineko/magiskboot_build/releases/tag/cygwin-test in the meanwhile

@13584452567
Copy link
Author

btw maybe try to use the cygwin build cygwin-test (release) in the meanwhile

well, cygwin-build works fine.it extract all files in cpio.

but this build has too many dll and has no win32 version.i will try to pack all of them into one exe

thanks for your reply!

@ghost
Copy link

ghost commented Jun 18, 2024

i can make a standalone cygwin build, that only depend on cygwin1.dll

@ghost
Copy link

ghost commented Jun 18, 2024

if you want

@13584452567
Copy link
Author

i can make a standalone cygwin build, that only depend on cygwin1.dll

that's really a great news!

i think i need it

thank you very much!~

@13584452567
Copy link
Author

a new problem:
command:
magiskboot cpio ramdisk.cpio "extract /system/bin/init init"
output:

Loading cpio: [ramdisk.cpio]
Extracting entry [system/bin/init] to [init]
thread '<unnamed>' panicked at 'strerror_r failure', library/std/src/sys/unix/os.rs:127:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

using binary form this

@ghost ghost changed the title [bug report] can't extract some ramdisk on windows [bug report] can't extract some ramdisk on windows/cygwin Jun 18, 2024
@ghost
Copy link

ghost commented Jun 18, 2024

sad

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working windows Issues on Windows
Projects
None yet
Development

No branches or pull requests

1 participant