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

unable to unmount /mnt/mnt\0/mnt\0 #2

Closed
dazoe opened this issue May 11, 2021 · 4 comments
Closed

unable to unmount /mnt/mnt\0/mnt\0 #2

dazoe opened this issue May 11, 2021 · 4 comments

Comments

@dazoe
Copy link

dazoe commented May 11, 2021

to get it to work i needed to change echo -n "\$xx\0" to echo -ne "\$xx\0"
this was on a raspberry pi zero w using buildroot

@fitu996
Copy link
Owner

fitu996 commented May 24, 2021

What's your default shell?

The "$xx\0" shouldn't be interpreted by echo.

@dazoe
Copy link
Author

dazoe commented May 25, 2021

Default shell was BusyBox's ash

@Robin-Sch
Copy link

I installed the script and added init=/sbin/overlayRoot.sh to grub and updated grub.

I get the error:

umount /mnt/sys/firmware/efi/efivars\0/mnt/sys\0/mnt/run\0/mnt/mnt\0/mnt\0: no mount point specified
[overlayRoot.sh] ERROR: could not umount old root
[overlayRoot.sh] there is something wrong with overlayRoot.sh. type exit and press enter to ignore and continue

Solution:
Reboot into recovery USB (pressing enter doesn't work because the file won't be saved to the disk).

Change echo -n "\$xx\0" to echo -ne "\$xx\0" (add an e).

OS: Arch Linux

@fitu996
Copy link
Owner

fitu996 commented Feb 19, 2024

Fixed by a4e6398

Reopen the issue if there is not.

@fitu996 fitu996 closed this as completed Feb 19, 2024
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

3 participants