Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot decompress filesystem.squashfs #2

Closed
UstymUkhman opened this issue Aug 11, 2022 · 8 comments
Closed

Cannot decompress filesystem.squashfs #2

UstymUkhman opened this issue Aug 11, 2022 · 8 comments

Comments

@UstymUkhman
Copy link

Hi @MainSilent , really cool stuff here!

I was trying to follow instructions in README file, but I got stuck when decompressing filesystem.squashfs. It runs for a while (until 15125/46870 to be exact), but it then fails with following message:

FATAL ERROR:dir_scan: failed to make directory filesystem/chroot/usr/lib/x86_64-linux-gnu/perl/5.24.1/sys, because File exists

It happens in both cases: with npx reqs and by running unsquashfs -d filesystem filesystem.squashfs.

Maybe you have faced something similar? Also, it's worth noting that I got some errors before, but I saw in your video on YouTube, you have those as well, except that in my case its:

create_inode: failed to create character device filesystem/chroot/dev/zero, because Operation not supported

not because you're not superuser!. Probably I should also mention that I'm trying to run this thing under WSL2.
I'll be grateful for any help, thanks!

@MainSilent
Copy link
Owner

I haven't tested it on WSL, Can you try it on a Linux distro(barebone or VM)? Just to make sure it's not from WSL.
BTW, Have you also tested it with root?

@UstymUkhman
Copy link
Author

Thanks for the quick reply! Yeah, I can probably install a VM and give it a try from there. I'll come back here to let you know if this issue is related just to to the WSL when I find some time for this test. Yes, I have tried with a root user on WSL, same error.

@UstymUkhman
Copy link
Author

Sorry it took me a year to reply. 😄
I can confirm it is related to WSL only. I was able to make it work on an Ubuntu virtual machine and, after compiling there, even run it under Windows. Pretty cool! Thanks for this awesome package. ❤️
Just one more question: do you know if it's possible to shutdown the whole Linux OS from Electron main process? Maybe by executing some command directly on on the console that launched the application in the first place?

@MainSilent
Copy link
Owner

Anything is possible, This package just creates a linux distro that use an electron app as Desktop Environment, I decided to make it as minimum as possible so the user customize it without bloatware.

@UstymUkhman
Copy link
Author

That's cool, I appreciate when something is as minimal as possibile. Do you have any idea on how to implement the feature I described? I feel like that's the last piece of puzzle I want to add. Any help will be much appreciated, thanks!

@MainSilent
Copy link
Owner

There are many ways to achieve that, If I remember correctly there is busy box installed which have init command, Can you try init 0?

const { exec } = require('child_process');

exec('init 0')

@UstymUkhman
Copy link
Author

I will definitely check that out. Thank you so much!

@UstymUkhman
Copy link
Author

It worked! 🎉 Thanks a lot! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants