summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-04-13 01:25:53 +0200
committermaximilian attems <maks@debian.org>2007-04-13 01:25:53 +0200
commit878b47192bc92fcfe78f34134a8aea70afc161f5 (patch)
tree77d0f89b0b71b9f2a078c3a6345fe5404dd5578e /init
parent976a23c3d0a4fb156f4e069ff2bbde7c3daa6927 (diff)
Add support for a blacklist boot parameter.
disallows modules loading inside of the initramfs.
Diffstat (limited to 'init')
-rwxr-xr-xinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/init b/init
index 00e0dcf..b115cd1 100755
--- a/init
+++ b/init
@@ -50,6 +50,7 @@ export debug=
export cryptopts=${CRYPTOPTS}
export ROOTDELAY=
export panic=
+export blacklist=
# Parse command line options
for x in $(cat /proc/cmdline); do
@@ -125,6 +126,9 @@ for x in $(cat /proc/cmdline); do
break)
break=premount
;;
+ blacklist=*)
+ blacklist=${x#blacklist=}
+ ;;
esac
done