]> granicus.if.org Git - zfs/commit
initramfs/debian: use panic() instead of directly calling /bin/sh
authorMichael Niewöhner <c0d3z3r0@users.noreply.github.com>
Thu, 28 Feb 2019 20:05:55 +0000 (21:05 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 28 Feb 2019 20:05:55 +0000 (12:05 -0800)
commit46164122c0f365f14073266a695334f9de2073cf
tree960d5a01e37e05fa76d5854eebff95f45efac45c
parentd6838ae649d7a369b5064f7ab1c016b39c26af68
initramfs/debian: use panic() instead of directly calling /bin/sh

Debian has a panic() function which makes it possible to disable shell
access in initramfs by setting the panic kernel parameter. Use it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Kash Pande <kash@tripleback.net>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes #8448
contrib/initramfs/scripts/zfs.in