Browse Source
All modules now live in a subdirectory /modules.d. Each module is self-contained -- it should contain everything that it will install on the initrd. All modules must include a script named install, which will be sourced by dracut. This script should do the actual file installation using inst methods. The moddir variable will point to the full path to the module dracut is currently working on. As usual, this patch series applies on top of my previous patch series, and is available as normalize-modules from http://git.fnordovax.org/dracut.master
Victor Lowther
15 years ago
committed by
Harald Hoyer
28 changed files with 28 additions and 26 deletions
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash |
||||
dracut_install ip dhclient |
||||
inst "$moddir/ifup" "/sbin/ifup" |
||||
inst "$moddir/dhclient-script" "/sbin/dhclient-script" |
||||
instmods =networking ecb arc4 |
||||
inst_rules "$moddir/60-net.rules" |
||||
inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh" |
||||
inst_hook pre-mount 70 "$moddir/run-dhclient.sh" |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash |
||||
inst cryptsetup |
||||
inst_rules "$moddir/63-luks.rules" |
||||
inst_hook mount 10 "$moddir/cryptroot.sh" |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash |
||||
inst lvm |
||||
inst_rules "$moddir/64-lvm.rules" |
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash |
||||
dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed sh ls |
||||
# install our scripts and hooks |
||||
inst "$moddir/init" "/init" |
||||
inst "$moddir/switch_root" "/sbin/switch_root" |
||||
inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh" |
||||
inst_hook mount 90 "$moddir/resume.sh" |
||||
inst_hook mount 99 "$moddir/mount-partition.sh" |
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash |
||||
dracut_install ip dhclient |
||||
inst "$dsrc/ifup" "/sbin/ifup" |
||||
inst "$dsrc/dhclient-script" "/sbin/dhclient-script" |
||||
instmods =networking ecb arc4 |
||||
inst_rules "$dsrc/rules.d/60-net.rules" |
||||
inst_hook pre-pivot 10 "$dsrc/hooks/kill-dhclient.sh" |
||||
inst_hook pre-mount 70 "$dsrc/hooks/run-dhclient.sh" |
@ -1,4 +0,0 @@
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash |
||||
inst cryptsetup |
||||
inst_rules "$dsrc/rules.d/63-luks.rules" |
||||
inst_hook mount 10 "$dsrc/hooks/cryptroot.sh" |
@ -1,3 +0,0 @@
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash |
||||
inst lvm |
||||
inst_rules "$dsrc/rules.d/64-lvm.rules" |
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash |
||||
dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed sh ls |
||||
# install our scripts and hooks |
||||
inst "$initfile" "/init" |
||||
inst "$switchroot" "/sbin/switch_root" |
||||
inst_hook pre-pivot 50 "$dsrc/hooks/selinux-loadpolicy.sh" |
||||
inst_hook mount 90 "$dsrc/hooks/resume.sh" |
||||
inst_hook mount 99 "$dsrc/hooks/mount-partition.sh" |
Loading…
Reference in new issue