Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#4092 - mkinitrd broken for lvm
Attached to Project:
Arch Linux
Opened by Thorben Thuermer (r00t) - Friday, 03 March 2006, 02:11 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 03 March 2006, 07:54 GMT
Opened by Thorben Thuermer (r00t) - Friday, 03 March 2006, 02:11 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 03 March 2006, 07:54 GMT
|
Detailsi just installed archlinux onto an lvm root, and ran into several problems with mkinitrd:
first of all, there is a simple typo in the script that causes it to create a broken linuxrc: echo 'echo Activating logical volumes..."' >>$LINUXRC note the missing opening double-quote in the echo command generated fixed (for completeness): echo 'echo "Activating logical volumes..."' >>$LINUXRC secondly, i created an lvm physical volumes directly on the disk (without any legacy partitions), but mkblkdevs() only creates device-nodes for partitions, not for the disks (hda1-x but not hda itself), so vgscan can not find the pv on hda. to fix this i added to the function: echo "mknod /dev/$1 b $4 0" >>$LINUXRC also, i would suggest to have linuxrc drop to an interactive shell when it fails to mount the root (with an option to retry from there) instead of just exiting and letting the kernel run into a panic (i can write/submit a patch for this or open a separate feature request, if desired) |
This task depends upon
Closed by arjan timmerman (blaasvis)
Saturday, 25 March 2006, 18:35 GMT
Reason for closing: Fixed
Additional comments about closing: as the big boss said:
Fixed in -29
Saturday, 25 March 2006, 18:35 GMT
Reason for closing: Fixed
Additional comments about closing: as the big boss said:
Fixed in -29
Sorry about the hokey LVM job, I never really finished the work here, my only LVM box has been out of action recently.
I've added your suggested changes. If you don't mind, please help me test them out. I'd also appreciate a patch for the interactive shell you mentioned above.
The new mkinitrd package is in Testing.
echo "mknod $1 b $4 $minor" >>$LINUXRC
these lines cause here a error message during bootup, or at least i think they are the cause.
is in my linuxrc so i think something is really wrong here,
could this be the fix?
mkblkdevs md 0 15 9 0
changing to:
mkblkdevs md 0 15 9 1