mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-30 19:02:29 +00:00 
			
		
		
		
	Try processing driver disks before udevadm invocation
This commit is contained in:
		| @@ -1,6 +1,13 @@ | ||||
| #!/bin/sh | ||||
| [ -e /tmp/confluent.initq ] && return 0 | ||||
| . /lib/dracut-lib.sh | ||||
| if [ -f /tmp/dd_disk ]; then | ||||
|     for dd in $(cat /tmp/dd_disk); do | ||||
|         if [ -e $dd ]; then | ||||
|             driver-updates --disk $dd $dd | ||||
|         fi | ||||
|     done | ||||
| fi | ||||
| setsid sh -c 'exec bash <> /dev/tty2 >&0 2>&1' & | ||||
| udevadm trigger | ||||
| udevadm trigger --type=devices --action=add | ||||
| @@ -20,13 +27,6 @@ function confluentpython() { | ||||
|         /usr/bin/python2 $* | ||||
|     fi | ||||
| } | ||||
| if [ -f /tmp/dd_disk ]; then | ||||
|     for dd in $(cat /tmp/dd_disk); do | ||||
|         if [ -e $dd ]; then | ||||
|             driver-updates --disk $dd $dd | ||||
|         fi | ||||
|     done | ||||
| fi | ||||
| vlaninfo=$(getarg vlan) | ||||
| if [ ! -z "$vlaninfo" ]; then | ||||
|         vldev=${vlaninfo#*:} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user