rc.local fails

General support for the Pi-Star System
Post Reply
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

rc.local fails

Post by K2IE »

Noticed after an update to 4.1.4 but doubt it is directly related. The rc-local.service that runs the /etc/rc.local script is failing on my dupex hotspot. Oddly, it works just fine on the zumspot.

Anyway, systemctl status reports that the failure is because of a busy mountpoint.

Anyone else seeing this?

Try sudo systemctl status rc-local and look for any errors.
User avatar
MW0MWZ
Site Admin
Posts: 1585
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: rc.local fails

Post by MW0MWZ »

I ran into this while porting 4.1.x to the NanoPi Neo (Friendly Arm) - but have not looked at it on the Raspberry Boards yet;

It fails because the disk is set back to RO mode (or it attempts to) while calling somthing that needs disk access.
My eventual fix on the NanoPi Neo was to remove the line that attempts to set the disk RO again - and that made it quit nagging.

Feel free to test that and see if the system still boots to RO or not (I want to say it still will, but try it and let me know what you get).
Andy

73 de MW0MWZ
http://pistar.uk
K2IE
Posts: 124
Joined: Mon Aug 20, 2018 5:24 pm
Contact:

Re: rc.local fails

Post by K2IE »

A reboot after commenting out the ro remount after the cron manipulation does indeed fix the failure issue. Upon login, the system is confirmed to be in ro state as you suspected.

73
Post Reply