Your message dated Sat, 5 May 2007 13:51:11 +0200
with message-id <[EMAIL PROTECTED]>
and subject line grub and RAID
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: grub
Version: 0.91-2
Severity: wishlist
Hi Robert,
I boot my Debian system from a RAID1 device. It would be nice if
update-grub could write more than one root devices (e.g.
# groot=(hd0,0) (hd1,0))
into menu.lst. So I have a backup for booting whenever the
first disk fails.
Attached is a patch to implement this feature. (The important part is
just the "for kroot in $groot ; do", "done" and using $kroot instead
of $groot. All other stuff is just differences in the number of
whitespaces.)
Cheers,
Stephan
-- System Information
Debian Release: 3.0
Kernel Version: Linux moritz 2.4.26 #8 Sun Jul 11 11:24:08 CEST 2004 i686
unknown
Versions of the packages grub depends on:
ii libc6 2.2.5-6 GNU C Library: Shared libraries and Timezone
ii libncurses5 5.2.20020112a- Shared libraries for terminal handling
-- Patch
*** /sbin/update-grub Mon Feb 4 05:41:32 2002
--- /usr/local/stow/update-grub/sbin/update-grub Sat Aug 7 15:38:25 2004
***************
*** 384,418 ****
fi
fi
! echo "title Debian GNU/Linux, kernel $kernelVersion" >>
$buffer
! echo "root $groot" >> $buffer
! echo "kernel $kernel $kopt" >> $buffer
! if [ -n "$initrdName" ]; then
! echo "initrd $initrd" >> $buffer
! fi
! echo "savedefault" >> $buffer
! echo >> $buffer
! # insert the alternative boot options
! if test ! x"$alternative" = x"false" ; then
! # for each altoptions line do this stuff
! sed -ne 's/# altoptions=\(.*\)/\1/p' $buffer | while read line;
do
! descr=$(echo $line | sed -ne
's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p')
! suffix=$(echo $line | sed -ne
's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p')
! echo "title Debian GNU/Linux, kernel
$kernelVersion $descr" >> $buffer
! # lock the alternative options
! if test x"$lockalternative" = x"true" ; then
! echo "lock" >> $buffer
! fi
! echo "root $groot" >> $buffer
! echo "kernel $kernel $kopt $suffix" >>
$buffer
! if [ -n "$initrdName" ]; then
! echo "initrd $initrd" >> $buffer
! fi
! echo "savedefault" >> $buffer
! echo >> $buffer
! done
! fi
done
echo $end >> $buffer
--- 384,420 ----
fi
fi
! for kroot in $groot ; do
! echo "title Debian GNU/Linux, kernel
$kernelVersion, boot from $kroot" >> $buffer
! echo "root $kroot" >> $buffer
! echo "kernel $kernel $kopt" >> $buffer
! if [ -n "$initrdName" ]; then
! echo "initrd $initrd" >> $buffer
! fi
! echo "savedefault" >> $buffer
! echo >> $buffer
! # insert the alternative boot options
! if test ! x"$alternative" = x"false" ; then
! # for each altoptions line do this stuff
! sed -ne 's/# altoptions=\(.*\)/\1/p' $buffer | while
read line; do
! descr=$(echo $line | sed -ne
's/\(([^)]*)\)[[:space:]]\(.*\)/\1/p')
! suffix=$(echo $line | sed -ne
's/\(([^)]*)\)[[:space:]]\(.*\)/\2/p')
! echo "title Debian GNU/Linux,
kernel $kernelVersion $descr, boot from $kroot" >> $buffer
! # lock the alternative options
! if test x"$lockalternative" = x"true" ; then
! echo "lock" >> $buffer
! fi
! echo "root $kroot" >> $buffer
! echo "kernel $kernel $kopt $suffix"
>> $buffer
! if [ -n "$initrdName" ]; then
! echo "initrd $initrd" >>
$buffer
! fi
! echo "savedefault" >> $buffer
! echo >> $buffer
! done
! fi
! done
done
echo $end >> $buffer
--- End Message ---
--- Begin Message ---
Hi,
Support for software RAID, which is (hopefuly) the right way to implement what
you wanted, has been recently added to grub2.
Stephan, would you please test it and report ?
I'm closing this bug, since it contains information about a feature we aren't
going to provide (unless there are more convincing reasons to do it). If
grub2 RAID doesn't work for you, please file another bug in that package.
Thank you
--
Robert Millan
My spam trap is [EMAIL PROTECTED] Note: this address is only intended
for spam harvesters. Writing to it will get you added to my black list.
--- End Message ---