Re: Bug#545691: diverting telinit
In article <[🔎] 87r5sudn0p.fsf_-_@anzu.internal.golden-gryphon.com> you wrote:
> [ "$(stat -c %d/%i /sbin/init)" = "$(stat -Lc %d/%i /proc/1/exe 2>/dev/null)" ] ; then
> # So, init exists, and there is a linuxy /proc, and the inode of
> # the executable of the process with uid 1 is the same as
> # /sbin/init (ok, no init=/bin/sh going on)
Maybe another check besides inode idendity is better, otherwise it will not
be able to be used afer an upgrade (and before reboot), or?
And for the "else" case a diagnostics message would be good.
Gruss
Bernd
Reply to: