fitu996 / overlayRoot.sh

Read-only Root-FS for most linux distributions using overlayfs.
GNU General Public License v3.0
30 stars 10 forks source link

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

Closed dazoe closed 7 months ago

dazoe commented 3 years ago

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 commented 3 years ago

What's your default shell?

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

dazoe commented 3 years ago

Default shell was BusyBox's ash

Robin-Sch commented 1 year ago

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 commented 7 months ago

Fixed by https://github.com/fitu996/overlayRoot.sh/commit/a4e6398bb3c83a696d3d4676e3ac1c717a4a9537

Reopen the issue if there is not.