Bug#587290: initramfs-tools: malformed yaboot.conf created when alternate partitions use UUID= in fstab
On 06/27/10 08:19, Ben Hutchings wrote:
Please send the files /etc/fstab, /etc/yaboot.conf.old and
/etc/yaboot.conf from your system.
Ben.
OK. Here they are:
/etc/yaboot.conf from the hda6 partition (see note [1])
## yaboot.conf generated by debian-installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
# boot = /dev/hda2
boot = "/dev/disk/by-label/bootstrap"
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=6
# root = /dev/hda6
root = "UUID=88a47bea-8c36-4a09-b418-747e2396feb2"
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
image=/boot/vmlinux.old
label=old
read-only
initrd=/boot/initrd.img.old
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda4.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:4,/boot/vmlinux
label=hda4-Linux
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:4
append="root=/dev/hda4 ro"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:4,/boot/initrd.img
# This entry added by Rick for an existing
# Linux installation on /dev/hda5.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/vmlinux-2.6.27-1.ydl61.5
label=hda5-Linux
read-only
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5
append="rhgb quiet root=/dev/hda5"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/initrd-2.6.27-1.ydl61.5.img
/etc/fstab from hda6 [1]
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/hda6 during installation
UUID=88a47bea-8c36-4a09-b418-747e2396feb2 / ext3 errors=remount-ro 0 1
# /home was on /dev/md127 during installation
# UUID=fa18ea9a-bf45-42c6-9eb5-9d67aa80eeb9 /home ext3 defaults 0 2
/dev/md127 /home ext3 defaults 0 3
# swap was on /dev/hda3 during installation
# /dev/hda3 none swap sw 0 0
LABEL=SWAP-hda3 none swap sw 0 0
# /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/cdrom /media/cdrom0 udf,iso9660 user,noauto 0 0
/etc/fstab from hda4 [2]
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/hda4 during installation
UUID=2494caa7-fb49-4cbe-81ee-b594788f4d85 / ext3 errors=remount-ro 0 1
# swap was on /dev/hda3 during installation
UUID=e672ba0d-2c2e-4b03-9e4e-7a71f39c44b9 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/etc/yaboot.conf from hda4 [2]
## yaboot.conf generated by debian-installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda4
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
image=/boot/vmlinux.old
label=old
read-only
initrd=/boot/initrd.img.old
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda5.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/vmlinux-2.6.27-1.ydl61.5
label=hda5-linux
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5
append="ro rhgb quiet root=LABEL=/"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/initrd-2.6.27-1.ydl61.5.img
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda6.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/vmlinux
label=hda6-Linux
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6
append="root=/dev/hda6 ro"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/initrd.img
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda6.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/vmlinux.old
label=hda6-old
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6
append="root=UUID ro"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/initrd.img.old
/etc/yaboot.conf.ORIG from hda4
## yaboot.conf generated by debian-installer
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
## see also: /usr/share/doc/yaboot/examples for example configurations.
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda4
timeout=100
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
enablecdboot
image=/boot/vmlinux
label=Linux
read-only
initrd=/boot/initrd.img
image=/boot/vmlinux.old
label=old
read-only
initrd=/boot/initrd.img.old
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda5.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/vmlinux-2.6.27-1.ydl61.5
label=hda5-linux
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5
append="ro rhgb quiet root=LABEL=/"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:5,/boot/initrd-2.6.27-1.ydl61.5.img
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda6.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/vmlinux
label=hda6-Linux
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6
append="root=UUID ro"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/initrd.img
# This entry automatically added by the Debian installer for an existing
# Linux installation on /dev/hda6.
image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/vmlinux.old
label=hda6-old
root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6
append="root=UUID ro"
initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:6,/boot/initrd.img.old
Notes:
[1] the hda6 partition is using my modified /usr/sbin/ybin that I
submitted with my bugreport #580455. So it capable of dealing with
fstab and yaboot.conf using UUID=.... to identify partitions.
Without the modified ybin, I have to edit those files to use the
conventional /dev/hdxn designations.
[2] the hda4 partition has the stock, unmodified, /usr/sbin/ybin .
Fortunately, the installed creates its /etc/yaboot.conf using
conventional /dev/hdxn. But it leaves a ticking time-bomb in the form
of UUID= designations in /etc/fstab . The next time yaboot.conf is
created (e.g. with a kernel upgrade) it will pick up those designations
and ybin will crash.
Rick
Reply to: