Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-06-17 Thread Piotr Roszatycki
On Thursday 16 of June 2005 21:55, you wrote:
 On Thu, Mar 31, 2005 at 10:00:00PM +0200, Piotr Roszatycki wrote:
  The problem is shown with Compaq Array and Mylex DAC960 and probably with
  other controllers which use root=/dev/subdirectory/file path schema. This
  syntax is correct for Linux 2.4 but it is wrong for Linux 2.6. The Linux
  2.6 has changed syntax for root kernel parameter and it is now
  root=/dev/subdirectory!file path.

 I think /dev/subdirectory/file is backward compatible, check
 http://lxr.linux.no/source/init/do_mounts.c#L176

 however I didn't investigated this much nor I know if mylex/compaq array
 driver do special argument parsing, but that doesn't seem the case

No, it isn't. At least in the Debian installer. The only way to boot from 
Mylex or CPQ was to change '/' to '!' in GRUB's menu.lst.

-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-06-16 Thread Filippo Giunchedi
On Thu, Mar 31, 2005 at 10:00:00PM +0200, Piotr Roszatycki wrote:
 The problem is shown with Compaq Array and Mylex DAC960 and probably with
 other controllers which use root=/dev/subdirectory/file path schema. This
 syntax is correct for Linux 2.4 but it is wrong for Linux 2.6. The Linux
 2.6 has changed syntax for root kernel parameter and it is now
 root=/dev/subdirectory!file path.

I think /dev/subdirectory/file is backward compatible, check
http://lxr.linux.no/source/init/do_mounts.c#L176

however I didn't investigated this much nor I know if mylex/compaq array driver
do special argument parsing, but that doesn't seem the case

filippo


signature.asc
Description: Digital signature


Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-05-23 Thread Piotr Roszatycki
tags 302359 patch
thanks

This is the patch which fixes this error only at installation time. The 
kopt_2_6 line is generated only for fresh menu.lst. It should allow to boot 
kernel 2.6 with Compaq or Mylex RAID controllers.

-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-
--- update-grub	2005-04-19 01:38:00 +0200
+++ update-grub.kernel26	2005-05-23 11:54:45 +0200
@@ -96,6 +96,14 @@
 	echo $device
 }
 
+# Usage: convert_kernel26 os_device
+# Convert system path to the kernel26 notation
+# I.e. /dev/ida/c0d0p2 - /dev/ida!c0d0p2
+convert_kernel26 ()
+{
+echo $1 | sed 's%^\(/dev/[^/]*\)/\(.*\)%\1!\2%'
+}
+
 # Usage: convert_raid1 os_device
 # Checks if os_device is a software raid1.
 # If so, converts to first physical device in array.
@@ -262,6 +270,7 @@
 
 # the device for the / filesystem
 root_device=$(find_root_device)
+root_device_2_6=$(convert_kernel26 $root_device)
 
 # the device for the /boot filesystem
 boot_device=$(find_device /boot)
@@ -597,6 +606,9 @@
 # Extract the kernel options to use
 kopt=$(GetMenuOpt kopt $kopt)
 
+# Set the kernel 2.6 option only for fresh install
+test -z $(GetMenuOpt kopt )  kopt_2_6=root=$root_device_2_6 ro
+
 # Extract options for specific kernels
 eval $(ExtractMenuOpts \(kopt_[a-zA-Z0-9_]\+\))
 CustomKopts=$(GetMenuOpts \(kopt_[a-zA-Z0-9_]\+\))
@@ -637,6 +649,8 @@
 echo # kopt=$kopt  $buffer
 if [ -n $CustomKopts ] ; then
 echo $CustomKopts  $buffer
+elif [ -n $kopt_2_6 ]  [ $kopt != $kopt_2_6 ]; then
+echo # kopt_2_6=$kopt_2_6  $buffer
 fi
 echo  $buffer
 


Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-03-31 Thread Piotr Roszatycki
Package: debian-installer
Severity: important

The GRUB entry for linux26 have to be

kernel /vmlinuz-2.6.8-2-686 root=/dev/rd!c0d0p2 ro

Please note the exclamation sign! This is required by Kernel 2.6. It is serious
bug and makes the system not bootable.

The solution might be:

# kopt_2_4=root=/dev/rd/c0d0p1 ro
# kopt=root=/dev/rd!c0d0p1 ro

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-03-31 Thread Christian Perrier
Quoting Piotr Roszatycki ([EMAIL PROTECTED]):
 Package: debian-installer
 Severity: important
 
 The GRUB entry for linux26 have to be
 
 kernel /vmlinuz-2.6.8-2-686 root=/dev/rd!c0d0p2 ro
 
 Please note the exclamation sign! This is required by Kernel 2.6. It is 
 serious
 bug and makes the system not bootable.

Correct me if I'm wrong, but you don't give any detail about the
installation conditions, hardware flavour, architecture and so on

The above seems to suggest that you're installing on some kind of
unusual hardware, or rare achitecture.

Could you please give more details about this installation by using
the report template and instructions you will find from
http://www.debian.org/devel/debian-installer ?





Bug#302359: debian-installer: linux26 can't boot with root=/dev/ida/c0d0p1 or root=/dev/rd/c0d0p1

2005-03-31 Thread Piotr Roszatycki
On Thu, 31 Mar 2005, Christian Perrier wrote:
 Correct me if I'm wrong, but you don't give any detail about the
 installation conditions, hardware flavour, architecture and so on

 The above seems to suggest that you're installing on some kind of
 unusual hardware, or rare achitecture.

 Could you please give more details about this installation by using
 the report template and instructions you will find from
 http://www.debian.org/devel/debian-installer;?

The problem is shown with Compaq Array and Mylex DAC960 and probably with
other controllers which use root=/dev/subdirectory/file path schema. This
syntax is correct for Linux 2.4 but it is wrong for Linux 2.6. The Linux
2.6 has changed syntax for root kernel parameter and it is now
root=/dev/subdirectory!file path.

I can't belive I'm the only person who found this bug. The hardware RAID
controller is an usual device for standard server configuration.

-- 
.''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-