[opensuse-factory] mkinitrd fails after upgrading from M7 to M8

Hi, after upgrading from M7 to M8 I can't boot any more. The initrd is missing. When I execute "mkinitrd", I get the following error messages: ------------------- Kernel image: /boot/vmlinuz-2.6.31-10-desktop Initrd image: /boot/initrd-2.6.31-10-desktop cp: cannot stat `/etc/scsi_id.config': No such file or directory Root device: /dev/vgsystem/root (mounted on / as ext4) mkdir: cannot create directory `etc/sysconfig': File exists /lib/mkinitrd/setup/62-dm.sh: line 32: etc/sysconfig/kernel: Not a directory mkdir: cannot create directory `/dev/shm/mkinitramfs.4sGvKk/mnt/etc/sysconfig': File exists /lib/mkinitrd/setup/91-clock.sh: line 19: /dev/shm/mkinitramfs.4sGvKk/mnt/etc/sysconfig/clock: Not a directory Script /lib/mkinitrd/setup/91-clock.sh failed! ------------------- Booting without initrd does not work. I have / under LVM control. Any ideas why mkinitrd fails ? Ralf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

I have removed 91-clock.sh from /lib/mkinitrd/setup/ and now the initrd is created and booting works. But why does this command fail: echo HWCLOCK='"'"$HWCLOCK"'"' > $tmp_mnt/etc/sysconfig/clock It seems that $tmp_mnt/etc/sysconfig/ does not exist any more. But I can't see why... Ralf
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

It's me again ;-) I found two bugs. 1) 91-clock.sh needs a dir $tmp_mnt/etc/sysconfig, but $tmp_mnt/etc/sysconfig is a file wrongly created by 31-lvm2.sh before. 31-lvm2.sh is missing to create that dir, so I have added it to line 39: mkdir -p $tmp_mnt/etc/sysconfig cp -a /etc/lvm/lvm.conf $tmp_mnt/etc/lvm cp -a /etc/sysconfig/lvm $tmp_mnt/etc/sysconfig Now, mkinitrd works with 91-clock.sh enabled. In order to remove the error message "cp: cannot stat `/etc/scsi_id.config': No such file or directory", I had to add a test check around line 170 in 01-prepare.sh: # scsi_id config file if test -e /etc/scsi_id.config; then cp /etc/scsi_id.config $tmp_mnt/etc/scsi_id.config fi Now the output is fine: ------------------------------ ralf:/lib/mkinitrd/setup # mkinitrd Kernel image: /boot/vmlinuz-2.6.31-10-desktop Initrd image: /boot/initrd-2.6.31-10-desktop Root device: /dev/vgsystem/root (mounted on / as ext4) Resume device: /dev/vgsystem/swap Kernel Modules: pata_atiixp thermal_sys thermal ata_generic ide-core atiixp ide-pci-generic processor fan crypto_algapi crypto_blkcipher dm-mod dm-crypt dm-snapshot crc16 jbd2 ext4 linear Features: dm block usb lvm2 resume.userspace resume.kernel Bootsplash: openSUSE (1280x1024) 35726 blocks ------------------------------
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Saturday 10 October 2009 06:57:15 Ralf Krüdewagen wrote:
It is obviously LVM setup specific error. I didn't get such one and my setup is partition based. It would be good to file bug report with all details in other 2 emails, so that is fixed before release. -- Regards, Rajko People of openSUSE editor. Latest interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Saturday 10 October 2009 09:51:01 Rajko M. wrote:
Already reported: https://bugzilla.novell.com/show_bug.cgi?id=544361 -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* Ralf Krüdewagen <ralf@kruedewagen.de> [01-01-70 11:34]:
Booting without initrd does not work. I have / under LVM control. Any ideas why mkinitrd fails ?
Look at/vote for/add comments to bug# 505670 https://bugzilla.novell.com/show_bug.cgi?id=505670 I comment out my lvm drive in /etc/fstab, boot to run-level 1, un-comment the lvm drive line in /etc/fstab, "mount -a", init 5 and good to go. will not work for you if /root is lvm :^( -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

I have removed 91-clock.sh from /lib/mkinitrd/setup/ and now the initrd is created and booting works. But why does this command fail: echo HWCLOCK='"'"$HWCLOCK"'"' > $tmp_mnt/etc/sysconfig/clock It seems that $tmp_mnt/etc/sysconfig/ does not exist any more. But I can't see why... Ralf
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

It's me again ;-) I found two bugs. 1) 91-clock.sh needs a dir $tmp_mnt/etc/sysconfig, but $tmp_mnt/etc/sysconfig is a file wrongly created by 31-lvm2.sh before. 31-lvm2.sh is missing to create that dir, so I have added it to line 39: mkdir -p $tmp_mnt/etc/sysconfig cp -a /etc/lvm/lvm.conf $tmp_mnt/etc/lvm cp -a /etc/sysconfig/lvm $tmp_mnt/etc/sysconfig Now, mkinitrd works with 91-clock.sh enabled. In order to remove the error message "cp: cannot stat `/etc/scsi_id.config': No such file or directory", I had to add a test check around line 170 in 01-prepare.sh: # scsi_id config file if test -e /etc/scsi_id.config; then cp /etc/scsi_id.config $tmp_mnt/etc/scsi_id.config fi Now the output is fine: ------------------------------ ralf:/lib/mkinitrd/setup # mkinitrd Kernel image: /boot/vmlinuz-2.6.31-10-desktop Initrd image: /boot/initrd-2.6.31-10-desktop Root device: /dev/vgsystem/root (mounted on / as ext4) Resume device: /dev/vgsystem/swap Kernel Modules: pata_atiixp thermal_sys thermal ata_generic ide-core atiixp ide-pci-generic processor fan crypto_algapi crypto_blkcipher dm-mod dm-crypt dm-snapshot crc16 jbd2 ext4 linear Features: dm block usb lvm2 resume.userspace resume.kernel Bootsplash: openSUSE (1280x1024) 35726 blocks ------------------------------
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Saturday 10 October 2009 06:57:15 Ralf Krüdewagen wrote:
It is obviously LVM setup specific error. I didn't get such one and my setup is partition based. It would be good to file bug report with all details in other 2 emails, so that is fixed before release. -- Regards, Rajko People of openSUSE editor. Latest interviews: http://news.opensuse.org/category/people-of-opensuse/ About us: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

On Saturday 10 October 2009 09:51:01 Rajko M. wrote:
Already reported: https://bugzilla.novell.com/show_bug.cgi?id=544361 -- Regards, Rajko -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org

* Ralf Krüdewagen <ralf@kruedewagen.de> [01-01-70 11:34]:
Booting without initrd does not work. I have / under LVM control. Any ideas why mkinitrd fails ?
Look at/vote for/add comments to bug# 505670 https://bugzilla.novell.com/show_bug.cgi?id=505670 I comment out my lvm drive in /etc/fstab, boot to run-level 1, un-comment the lvm drive line in /etc/fstab, "mount -a", init 5 and good to go. will not work for you if /root is lvm :^( -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (3)
-
Patrick Shanahan
-
Rajko M.
-
Ralf Krüdewagen