Browse Source

[early] Improved init script to not activate mdadm and lvm volumes if {lvm,mdadm}=no was given as initrdopt

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
c42686d319
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      target/early/initramfs/init.sh

+ 2
- 2
target/early/initramfs/init.sh

@ -95,7 +95,7 @@ if [ ! -e "$root" ]; then
status
fi
if [ -s /etc/mdadm.conf ]; then
if [ "$want_mdadm" != no -a -s /etc/mdadm.conf ]; then
# try activating software raids
title "Activating RAID devices"
check modprobe md-mod
@ -112,7 +112,7 @@ if [ ! -e "$root" ]; then
status
fi
if [ -d /etc/lvm/archive ]; then
if [ "$want_lvm" != no -a -d /etc/lvm/archive ]; then
title "Activating LVM devices"
check modprobe dm_mod
check udevsettle

Loading…
Cancel
Save