Re: Change root partition
* Mathias Waack <M.Waack@gmx.de> [2009-03-10 19:59]:
> > The root device is stored in the ram disk, so you have to run:
> > update-initramfs -u
> > after changing /etc/fstab.
>
> thanks for the fast answer, but it raises another question: is there a
> workaround for #514756 (bug in parsing /proc/mdstat)?
You could try to make the following change to
/usr/share/initramfs-tools/hook-functions. It should work for your
particular setup:
--- hook-functions~ 2009-02-10 17:06:17.000000000 +0100
+++ hook-functions 2009-02-10 17:06:53.000000000 +0100
@@ -268,7 +268,7 @@
# md root /dev/mdX
elif [ "${root#/dev/md}" != "${root}" ]; then
root=${root#/dev/}
- block=$(awk "/^${root}/{print substr(\$5, 1, 3); exit}" \
+ block=$(awk "/^${root}/{print substr(\$6, 1, 2); exit}" \
/proc/mdstat)
# cciss device
elif [ "${root#/dev/cciss/}" != "${root}" ]; then
Can you make this change and try "update-initramfs -u" again? Make
sure to revert this change later.
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: