Linux/Ubuntu/NetbootPxeLiveCDMultipleReleases: init.patch
File init.patch, 1.2 KB (added by tj, 9 years ago) |
---|
-
init
old new 155 155 blacklist=*) 156 156 blacklist=${x#blacklist=} 157 157 ;; 158 essential=*) 159 essential=${x#essential=} 160 ;; 161 netconsole=*) 162 netconsole=${x#netconsole=} 163 ;; 158 164 esac 159 165 done 160 166 … … 177 183 maybe_break modules 178 184 log_begin_msg "Loading essential drivers..." 179 185 load_modules 186 if [ ! -z "${essential}" ]; then 187 # manually forced modules. Command-line format: 188 # essential=module1[:param1][:param2][;[module2][:param1][:param2] 189 for mod in "$(echo ${essential} | tr \; \ )"; do 190 probe="$(echo ${mod} | tr \: \ )" 191 modprobe $probe 192 done 193 fi 180 194 log_end_msg 181 195 196 if [ ! -z "${netconsole}" ] && [ -f /lib/modules/$(uname -r)/kernel/drivers/net/netconsole.ko ]; then 197 # manually requested loading. Command-line format: 198 # netconsole=[port]@<local-ip>/[interface],[port]@<target-ip>/[target-mac] 199 log_begin_msg "Loading netconsole ${netconsole} ..." 200 modprobe netconsole netconsole=${netconsole} 201 log_end_msg 202 fi 203 182 204 maybe_break premount 183 205 [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/init-premount" 184 206 run_scripts /scripts/init-premount