svn commit: r293115 - head/etc

Jilles Tjoelker jilles at stack.nl
Mon Jan 4 17:55:32 UTC 2016


On Mon, Jan 04, 2016 at 10:09:00AM -0700, Warner Losh wrote:
> On Mon, Jan 4, 2016 at 10:00 AM, Colin Percival <cperciva at tarsnap.com>
> wrote:

> > On 01/03/16 11:18, Warner Losh wrote:
> > > Log:
> > >   Use /bin/rm to remove /firstboot*. Otherwise rm -i alias is picked
> > >   up and can cause issues on boot with the prompts.

> > Huh, I never realized that could be a problem.

> It can, but it was a false positive here. /bin/sh always sources them,
> so if you'd added an alias, it would be hit here.

A non-interactive non-login sh does not source any startup files. Login
shells source /etc/profile and ~/.profile and interactive shells source
the file whose name is in the ENV environment variable.

The prompt comes from trying to remove an existing file which is not
writable. It can be suppressed by using rm -f instead of rm.

-- 
Jilles Tjoelker


More information about the svn-src-all mailing list