* Andrew Shadura [Wed May 29, 2013 at 07:07:07PM +0200]: > On Wed, 29 May 2013 18:48:15 +0200 Michael Prokop <m...@debian.org> wrote:
> > If $verbose is set in the environment (I just had such a situation > > with "verbose=1" in the kernel cmdline of a live system) and VERBOSE > > is not set to yes then $verbose from the environment reaches the > > 'ifup -a $exclusions $verbose' cmdline unfiltered. > > Please unset $verbose by default, otherwise it might leave people > > without working network in a situation like described above. > Hmm, okay, I will. However I wonder, why does that verbose=1 from the > kernel cmdline reach the process environment? My opinion is that it > generally shouldn't, or am I wrong? Looks like initramfs-tools leaks it via sysv-rc/file-rc/... Anyway, even if that wouldn't happen, you can also trigger it on the usual cmdline: ,---- [ simple demo ] | # echo $verbose | | # export verbose=foo | # /etc/init.d/networking restart | * Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning). | * Reconfiguring network interfaces... ifdown: Use --help for help | ifup: Use --help for help | failed. `---- regards, -mika-
signature.asc
Description: Digital signature