[Pkg-sysvinit-devel] Bug#660862: initscripts: symlink /etc/nologin points to non existent file:

Roger Leigh rleigh at codelibre.net
Fri Nov 23 22:05:07 UTC 2012


On Fri, Nov 23, 2012 at 03:49:15PM +0100, Carlos Alberto Lopez Perez wrote:
> Such symlink was created by an upgrade of the package initscripts on a system running Debian/Squeeze.
> 
> 
> Here is the relevant part:
> 
> 
> $ grep -C3 /etc/nologin sysvinit-2.88dsf/debian/initscripts.postinst
> # Set up nologin symlink so that dynamic-login-disabling will work
> # (when DELAYLOGIN is set to "yes")
> #
> if [ ! -L /etc/nologin ] && [ ! -e /etc/nologin ]
> then
> 	rm -f /var/lib/initscripts/nologin
> 	ln -s /var/lib/initscripts/nologin /etc/nologin
> fi
> 
> I don't know why the postinst script does that.  Can somebody explain?

Looking at the history in git, this was done for the migration
of /etc/nologin to /var/lib/initscripts/nologin; I presume at
least.  It would have been nicer to have a version check here.

Unless there's a reason for keeping it (and I can't see one
with a short investigation), I think this logic may be safely
removed.  It might be a bit late to do this for wheezy, but
definitely fixable for jessie.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Pkg-sysvinit-devel mailing list