| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
declare root=${root} |
| 4 |
|
| 5 |
case "${root}" in |
| 6 |
install:/dev/*) |
| 7 |
{ |
| 8 |
printf 'KERNEL=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/kiwi-installer-device %s"\n' \ |
| 9 |
"${root#install:/dev/}" "${root#install:}" |
| 10 |
printf 'SYMLINK=="%s", RUN+="/sbin/initqueue --settled --onetime --unique /sbin/kiwi-installer-device %s"\n' \ |
| 11 |
"${root#install:/dev/}" "${root#install:}" |
| 12 |
} >> /etc/udev/rules.d/99-installer-kiwi.rules |
| 13 |
wait_for_dev -n "${root#install:}" |
| 14 |
;; |
| 15 |
esac |