dracut/modules.d/55kiwi-repart/module-setup.sh
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | # called by dracut |
| 4 | check() { |
| 5 | return 255 |
| 6 | } |
| 7 | |
| 8 | # called by dracut |
| 9 | depends() { |
| 10 | echo rootfs-block dm kiwi-lib |
| 11 | return 0 |
| 12 | } |
| 13 | |
| 14 | # called by dracut |
| 15 | installkernel() { |
| 16 | instmods squashfs loop |
| 17 | } |
| 18 | |
| 19 | # called by dracut |
| 20 | install() { |
| 21 | declare moddir=${moddir} |
| 22 | test -f /config.partids && inst_simple /config.partids |
| 23 | test -f /.profile && inst_simple /.profile |
| 24 | inst_hook pre-mount 20 "${moddir}/kiwi-repart-disk.sh" |
| 25 | dracut_need_initqueue |
| 26 | } |