rc.local sed error on boot with debian

Bug #1700742 reported by Eric PEYREMORTE
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LTSP5
Fix Released
Undecided
Unassigned

Bug Description

This is a very very low priority bug.

On boot we get the following error :
sed : can't find /etc/rc.local : no such file or directory

On debian 9 rc.local doesn't exist any more by default but it seems that systemd still tries to run it if existing and executable.

/usr/share/ltsp/init-ltsp.d/50-rcfiles tries to sed /etc/rc.local which produce an unpleasant error on boot.

I don't think it impacts RCFILE behavior (lts.conf) but just produces an error.

Just replace :
 sed '${/^exit 0$/d;}' -i /etc/rc.local
with
 sed '${/^exit 0$/d;}' -i /etc/rc.local 2> /dev/null
 or
 [ -f /etc/rc.local ] && sed '${/^exit 0$/d;}' -i /etc/rc.local

Revision history for this message
Vagrant Cascadian (vagrantc) wrote :
Changed in ltsp:
status: New → Fix Committed
Revision history for this message
Vagrant Cascadian (vagrantc) wrote :

5.5.10 included the fix.

Changed in ltsp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.