diff options
| author | maximilian attems <maks@debian.org> | 2006-07-29 14:49:39 +0200 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2006-07-29 14:49:39 +0200 |
| commit | 5d46a04527bd3023e4f34cc99029ffc281f42110 (patch) | |
| tree | b9104286af5a3ca6778cc836581b86ab5a3573fc /mkinitramfs | |
| parent | 8761821795732a9755d673e92fb45ac9202270df (diff) | |
| download | initramfs-tools-5d46a04527bd3023e4f34cc99029ffc281f42110.tar.gz initramfs-tools-5d46a04527bd3023e4f34cc99029ffc281f42110.zip | |
- take care of partial mdadm/lvm Sarge upgrades
this compat stuff can go once Etch is released
- framebuffer stuff for usplash
- don't leave modules file behind - thanks piuparts!
Diffstat (limited to 'mkinitramfs')
| -rwxr-xr-x | mkinitramfs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mkinitramfs b/mkinitramfs index 52dea45..799b77e 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -228,6 +228,23 @@ cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d" run_scripts /usr/share/initramfs-tools/hooks run_scripts "${CONFDIR}"/hooks +# FIXME: Remove this Raid block after Etch releases +if [ -x /sbin/mdadm -a ! -f /usr/share/initramfs-tools/hooks/mdadm ]; then + mdadm --examine --scan > $DESTDIR/conf/mdadm.conf + copy_exec /sbin/mdadm /sbin + for x in md linear multipath raid0 raid1 raid456 raid5 raid6 raid10; do + manual_add_modules ${x} + done +fi + +# FIXME: Remove this LVM block after Etch releases +if [ -x /sbin/vgchange -a -d /lib/lvm-200 -a ! -f /usr/share/initramfs-tools/hooks/lvm2 ]; then + copy_exec /lib/lvm-200/vgchange /sbin + for x in dm_mod dm_snapshot dm_mirror; do + manual_add_modules ${x} + done +fi + # Apply DSDT to initramfs if [ -e "${CONFDIR}/DSDT.aml" ]; then copy_exec "${CONFDIR}/DSDT.aml" / |
