|
|
@ -49,13 +49,6 @@ echo "Mounting rootfs ..." |
|
|
|
root="root= `cat /proc/cmdline`" ; root=${root##*root=} ; root=${root%% *} |
|
|
|
root="root= `cat /proc/cmdline`" ; root=${root##*root=} ; root=${root%% *} |
|
|
|
init="init= `cat /proc/cmdline`" ; init=${init##*init=} ; init=${init%% *} |
|
|
|
init="init= `cat /proc/cmdline`" ; init=${init##*init=} ; init=${init%% *} |
|
|
|
|
|
|
|
|
|
|
|
# try best match / detected rootfs first, all the others thereafter |
|
|
|
|
|
|
|
filesystems=`disktype $root 2>/dev/null | |
|
|
|
|
|
|
|
sed -e '/file system/!d' -e 's/file system.*//' -e 's/ //g' \ |
|
|
|
|
|
|
|
-e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' \ |
|
|
|
|
|
|
|
-e 's/fat32/vfat/' |
|
|
|
|
|
|
|
sed '1!G ; $p ; h ; d' /proc/filesystems | sed /^nodev/d` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir /rootfs |
|
|
|
mkdir /rootfs |
|
|
|
|
|
|
|
|
|
|
|
if [ -x /sbin/mdadm ]; then |
|
|
|
if [ -x /sbin/mdadm ]; then |
|
|
@ -70,15 +63,29 @@ fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -x /sbin/lvm ]; then |
|
|
|
if [ -x /sbin/lvm ]; then |
|
|
|
echo "Detecting possible LVM devices" |
|
|
|
echo "Detecting possible LVM devices" |
|
|
|
|
|
|
|
modprobe dm_mod |
|
|
|
lvm vgscan |
|
|
|
lvm vgscan |
|
|
|
|
|
|
|
|
|
|
|
if [ -s /etc/lvm/cache/.cache ]; then |
|
|
|
if [ -s /etc/lvm/cache/.cache ]; then |
|
|
|
echo "Activating LVM devices" |
|
|
|
echo "Activating LVM devices" |
|
|
|
modprobe dm_mod |
|
|
|
|
|
|
|
lvm vgchange -ay |
|
|
|
lvm vgchange -ay |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# the modular filesystems ... |
|
|
|
|
|
|
|
for x in /lib/modules/*/kernel/fs/{*/,}*.*o ; do |
|
|
|
|
|
|
|
x=${x##*/} ; x=${x%.*o} |
|
|
|
|
|
|
|
modprobe $x |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# try best match / detected rootfs first, all the others thereafter |
|
|
|
|
|
|
|
filesystems=`disktype $root 2>/dev/null | |
|
|
|
|
|
|
|
sed -e '/file system/!d' -e 's/file system.*//' -e 's/ //g' \ |
|
|
|
|
|
|
|
-e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' \ |
|
|
|
|
|
|
|
-e 's/fat32/vfat/' |
|
|
|
|
|
|
|
sed '1!G ; $p ; h ; d' /proc/filesystems | sed /^nodev/d` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -x |
|
|
|
if [ "$root" ]; then |
|
|
|
if [ "$root" ]; then |
|
|
|
i=0 |
|
|
|
i=0 |
|
|
|
while [ $i -le 9 ]; do |
|
|
|
while [ $i -le 9 ]; do |
|
|
|