rc.local sed error on boot with debian
Bug #1700742 reported by
Eric PEYREMORTE
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/
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
To post a comment you must log in.
Thanks for the bug report! Fix committed to git:
https:/ /git.launchpad. net/ltsp/ commit/ ?id=db8618adc0a 3332ac38bab88ee 98d19a08fed253