diff options
Diffstat (limited to '')
-rwxr-xr-x | liveinit | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -50,6 +50,9 @@ DEBUG=0 # Masochists can copy the live environment into RAM: TORAM=0 +# Perhaps we need to blacklist some kernel module(s): +BLACKLIST="" + INITRD=$(cat /initrd-name) WAIT=$(cat /wait-for-root) KEYMAP=$(cat /keymap) @@ -74,6 +77,9 @@ for ARG in $(cat /proc/cmdline); do 0|1|2|3|4|5|6|S|s|single) RUNLEVEL=$ARG ;; + blacklist=*) + BLACKLIST=$(echo $ARG | cut -f2 -d=) + ;; debug) DEBUG=1 ;; @@ -573,6 +579,15 @@ EOPW sed -i -e "s/^\(127.0.0.1\t*\)@DARKSTAR@.*/\1${LIVE_HOSTNAME}.example.net ${LIVE_HOSTNAME}/" /mnt/overlay/etc/hosts fi + # Blacklist kernel modules if requested: + if [ ! -z "$BLACKLIST" ]; then + mkdir -p /mnt/overlay/etc/modprobe.d + echo "#Slackware Live blacklist" > /mnt/overlay/etc/modprobe.d/BLACKLIST-live.conf + for kernelmod in $(echo $BLACKLIST |tr ',' ' '); do + echo "blacklist $kernelmod" >> /mnt/overlay/etc/modprobe.d/BLACKLIST-live.conf + done + fi + # Delete ALSA state file, the Live OS may be booted on different computers: rm -f /mnt/overlay/var/lib/alsa/asound.state |