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 ------------------------------
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
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 ?
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org