http://www.wifiway.org

Wifiway 0.8 Install Print E-mail

Execute:

wifiway-install.es

this may ask you some questions, and the last one is:

Please insert the MBR in grub type:

example: hd0,0     hd1,1     hd0,2

This can be confused ,it want to ask the partition where wifiway had been installed, to add the lines on the menu.lst, but in grub type.

Example: If we has been installed Wifiway on hdb1, the grub type should be: hd0,0

View the menu.lst with mousepad.

grub-install --root-directory=/mnt/xy/ /dev/x

Example:  xy=hda1 x=hda

grub-install --root-directory=/mnt/hda1/ /dev/hda

this command is necesary because there is a bug  in wifiway-install.es

Line = grub-install --root-directory=/mnt/$ComboBox1 /dev/$ComboBox1

example:

$ComboBox1=hda1
grub-install --root-directory=/mnt/hda1/ /dev/hda1 ERROR

The correct way is: 

grub-install --root-directory=/mnt/hda1/ /dev/hda

Can you edit the wifiway-install.es and added in the begin:

echo "Indicate device where install MBR (Grub) ex: hda, hdb, hdc"
read ComboBox2

and modify the line:

grub-install --root-directory=/mnt/$ComboBox1 /dev/$ComboBox1

To:

grub-install --root-directory=/mnt/$ComboBox1 /dev/$ComboBox2

The correct script is:

echo "Indicate partition wehre install wifiway ex: hdb0, hdb1"
read ComboBox1
echo "Indicate device where install MBR (Grub) ex: hda, hdb, hdc"
read ComboBox2
echo umount /mnt/$ComboBox1
umount /mnt/$ComboBox1
echo export LFS=/mnt/$ComboBox1
export LFS=/mnt/$ComboBox1
echo mkdir -pv $LFS
mkdir -pv $LFS
echo mount -v -t ext3 /dev/$ComboBox1 $LFS
mount -v -t ext3 /dev/$ComboBox1 $LFS
echo mkdir -pv $LFS/{tmp,boot,mnt,dev,media,sys,proc}
mkdir -pv $LFS/{tmp,boot,mnt,dev,media,sys,proc}
echo mkdir -pv $LFS/{bin,etc,home,lib,root,sbin,usr,var}
mkdir -pv $LFS/{bin,etc,home,lib,root,sbin,usr,var}
echo cp --preserve=all -R /{bin,etc,home,lib,root,opt,sbin,usr,var} $LFS
cp --preserve=all -R /{bin,etc,home,lib,root,opt,sbin,usr,var} $LFS
echo cp /boot/vmlinuz $LFS/boot/
cp /boot/vmlinuz $LFS/boot/
echo mknod -m 600 $LFS/dev/console c 5 1
mknod -m 600 $LFS/dev/console c 5 1
echo mknod -m 666 $LFS/dev/null c 1 3
mknod -m 666 $LFS/dev/null c 1 3
echo mount --bind /dev $LFS/dev
mount --bind /dev $LFS/dev
echo mount -vt devpts devpts $LFS/dev/pts
mount -vt devpts devpts $LFS/dev/pts
echo mount -vt tmpfs shm $LFS/dev/shm
mount -vt tmpfs shm $LFS/dev/shm
echo mount -vt proc proc $LFS/proc
mount -vt proc proc $LFS/proc
echo mount -vt sysfs sysfs $LFS/sys
mount -vt sysfs sysfs $LFS/sys
echo "sysfs          /sys         sysfs  defaults        0     0" >> /mnt/$ComboBox1/etc/fstab
echo "shm            /dev/shm     tmpfs  defaults        0     0" >> /mnt/$ComboBox1/etc/fstab
echo grub-install --root-directory=/mnt/$ComboBox1 /dev/$ComboBox2
grub-install --root-directory=/mnt/$ComboBox1 /dev/$ComboBox2
touch /mnt/$ComboBox1/boot/grub/menu.lst
echo "Creando fichero menu.lst en " /mnt/$ComboBox1/boot/grub/menu.lst
echo "default 0" > /mnt/$ComboBox1/boot/grub/menu.lst
echo "timeout 30" >> /mnt/$ComboBox1/boot/grub/menu.lst
echo "" >> /mnt/$ComboBox1/boot/grub/menu.lst
echo "color green/black light-green/black" >> /mnt/$ComboBox1/boot/grub/menu.lst
echo "title wifiway" >> /mnt/$ComboBox1/boot/grub/menu.lst
echo " Indicate partition where install wifiway in format GRUB, ej:hd0,0  hd1,1  hd0,2"
read mbr
echo "root ("$mbr")" >> /mnt/$ComboBox1/boot/grub/menu.lst
echo "kernel /boot/vmlinuz root=/dev/"$ComboBox1 >> /mnt/$ComboBox1/boot/grub/menu.lst
echo "View the file menu.lst"
echo "End install"
mousepad /mnt/$ComboBox1/boot/grub/menu.lst

 
< Prev   Next >

Ads by google