Page 1 of 1
Small issue with overlayfs
Posted: Saturday 20 August 2016 15:58
by jannl
I just activated the overlayfs with the wiki, everthing looks to work great.
When I issue a 'service saveoverlays sync', everything seems to go ok, however I get an error near the end of the script: '/etc/init.d/saveoverlays: 107: [: rw: unexpected operator'
Line 107 looks ok, so not sure what to do here.
Any clues?
Small issue with overlayfs
Posted: Monday 22 August 2016 22:32
by hansrune
Long time sine, but I think i fixed that. Please try downloading the service script again. Alternatively, try:
sudo bash -x /etc/init.d/saveoverlays sync
.... to debug more detailed.
Re: Small issue with overlayfs
Posted: Tuesday 23 August 2016 8:54
by jannl
thx, will try that later this week.
I downloaded the saveoverlays last saturday.
When I look at the file now, I see a space between #! and /bin/sh, which shouldn't be there I think (shebang line)
Furthermore, this should indicate /bin/sh is used instead of bash.
I will come back to this.
Re: Small issue with overlayfs
Posted: Saturday 27 August 2016 12:15
by jannl
Issuing the command directly does not seem to give the error.
What presents the error is:
Code: Select all
sudo su -
mount -o remount,rw /
/etc/init.d/saveoverlays sync
mount -o remount,ro /
Error is in the saveoverlays
Re: Small issue with overlayfs
Posted: Sunday 11 December 2016 14:28
by guiguid
Same bug :
Code: Select all
pi@raspberrypi:/tmp $ sudo su -
root@raspberrypi:~# mount -o remount,rw /
root@raspberrypi:~# /etc/init.d/saveoverlays sync
[....] Syncing overlay filesystem sync: saveoverlays[info] Syncing /home to /home_org ....
[info] Syncing /var to /var_org ....
[info] Saving fake-hwclock.
[info] Sync changes to disk.
/etc/init.d/saveoverlays: 107: [: rw: unexpected operator
. ok
root@raspberrypi:~# mount -o remount,ro /
root@raspberrypi:~# /etc/init.d/saveoverlays sync
[....] Syncing overlay filesystem sync: saveoverlays[info] Syncing /home to /home_org ....
[info] Syncing /var to /var_org ....
[info] Saving fake-hwclock.
[info] Sync changes to disk.
/etc/init.d/saveoverlays: 107: [: ro: unexpected operator
. ok
root@raspberrypi:~#
Re: Small issue with overlayfs
Posted: Sunday 11 December 2016 14:32
by guiguid
Re: Small issue with overlayfs
Posted: Sunday 11 December 2016 20:27
by jannl
If that is the exact change, the line #/bin/bash does not do anything, because it is commented out.