[Bug 714650] New: LiveCD install fails to boot
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c0 Summary: LiveCD install fails to boot Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: All OS/Version: SuSE Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bwiedemann@suse.com QAContact: qa@suse.de CC: mmarek@suse.com Found By: System Test Blocker: --- Created an attachment (id=448126) --> (http://bugzilla.novell.com/attachment.cgi?id=448126) serial console output LiveCD installs fail to boot (maybe from mkinitrd problem) Reproducible: Always Steps To Reproduce: 1. do default install from current (Build0240) KDE-LiveCD Actual Results: bootloader and initrd run, but fail to mount rootfs so panics without /sbin/init last seen working in Build0220 2011-08-19 first seen failing in Build0233 2011-08-26 log has some interesting entries: boot/03-storage.sh: line 24: /config/mount.sh: No such file or directory .. mount -o rw -t sysfs /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001-part2 /root No init found. Try passing init= option to the kernel. bug looks like this: http://openqa.opensuse.org/viewimg/opensuse/testresults/openSUSE-KDE-LiveCD-... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c zj jia <zjjia@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@suse.com AssignedTo|bnc-team-screening@forge.pr |mmarek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c1 --- Comment #1 from Stephan Kulow <coolo@suse.com> 2011-08-30 10:23:28 CEST --- No fsck for your rootfs could be found. Please install: /sbin/fsck.sysfs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c2 --- Comment #2 from Stephan Kulow <coolo@suse.com> 2011-08-30 10:29:45 CEST --- /proc/mounts looks like it always looked like -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c3 --- Comment #3 from Stephan Kulow <coolo@suse.com> 2011-08-30 11:00:38 CEST --- The main problem seems to be that it says /usr device: /dev/sda2 (mounted /usr as ext4) which is unfortunately wrong as there is no /usr, /dev/sda2 is the root device given as -d Without -d /dev/sda2 it works correctly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c4 --- Comment #4 from Stephan Kulow <coolo@suse.com> 2011-08-30 11:48:17 CEST --- $dev, $major and $minor need to be set also in the else case of -z $rootdev Then it works. diff --git a/scripts/setup-storage.sh b/scripts/setup-storage.sh index 8beaf1f..58ddf71 100644 --- a/scripts/setup-storage.sh +++ b/scripts/setup-storage.sh @@ -264,11 +264,13 @@ resolve_mountpoint() local cpio major minor x1 local fstab_device fstab_mountpoint fstab_type fstab_options dummy + cpio=`echo "$mountpoint" | /bin/cpio --quiet -o -H newc` + major="$(echo $(( 0x${cpio:62:8} )) )" + minor="$(echo $(( 0x${cpio:70:8} )) )" + if [ -z "${!var_dev}" ] ; then # no dev specified, get current opts from /etc/fstab and device from stat - cpio=`echo "$mountpoint" | /bin/cpio --quiet -o -H newc` - major="$(echo $(( 0x${cpio:62:8} )) )" - minor="$(echo $(( 0x${cpio:70:8} )) )" + # check if /usr is part of / if test "$name" = "usr" -a "$major:$minor" = "$rootmajor:$rootminor"; then return @@ -299,6 +301,8 @@ resolve_mountpoint() update_blockdev $dev dev="$(beautify_blockdev $dev)" fi + else + dev="${!var_dev}" fi #if we don't know where the device belongs to -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-08-30 14:00:16 CEST --- This is an autogenerated message for OBS integration: This bug (714650) was mentioned in https://build.opensuse.org/request/show/80223 Factory / yast2-live-installer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c6 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #6 from Michal Marek <mmarek@suse.com> 2011-08-30 12:17:24 UTC --- Thanks for fixing this, pushed to git and openSUSE:Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c7 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sboyce@blueyonder.co.uk --- Comment #7 from Michal Marek <mmarek@suse.com> 2011-08-30 15:05:17 UTC --- *** Bug 714218 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=714218 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c8 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno@ioda-net.ch --- Comment #8 from Bruno Friedmann <bruno@ioda-net.ch> 2011-08-31 15:03:38 UTC --- version 2.7.0-30.1 from factory oss seems to fix a lot, but osc client especially with the build command drive you to error the -d /dev/null doesn't work anymore even with the env rootfstype set. for me the fix is quick as I use a lv disk and so can give the real dev to mkinitrd but don't know how people will do that with raw image disk file. "env" "rootfstype=ext4" "mkinitrd" "-d" "/dev/null" "-m" "ext3 ext4 btrfs reiserfs binfmt_misc virtio_pci virtio_blk" "-k" "/boot/vmlinuz" "-i" "/boot/initrd-3.0.0-4-desktop-virtio" Kernel image: /boot/vmlinuz Initrd image: /boot/initrd-3.0.0-4-desktop-virtio KMS drivers: nvidia Could not find the filesystem type for root device /dev/null Currently available -d parameters are: Block devices /dev/<device> NFS <server>:<path> URL <protocol>://<path> There was an error generating the initrd (1) c-3po:~ # "env" "rootfstype=ext4" "mkinitrd" "-d" "/dev/vgsys/lvobsbuild" "-m" "ext3 ext4 btrfs reiserfs binfmt_misc virtio_pci virtio_blk" "-k" "/boot/vmlinuz" "-i" "/boot/initrd-3.0.0-4-desktop-virtio" Kernel image: /boot/vmlinuz Initrd image: /boot/initrd-3.0.0-4-desktop-virtio KMS drivers: nvidia Root device: /dev/vgsys/lvobsbuild (mounted on / as ext4) Resume device: /dev/vgsys/lvswap enabling LUKS support for /dev/md1 (cr_md1) modprobe: Module kernel not found. WARNING: no dependencies for kernel module 'kernel' found. Kernel Modules: zlib_deflate btrfs reiserfs binfmt_misc virtio virtio_pci virtio_ring virtio_blk dm-mod dm-crypt dm-snapshot nvidia raid0 raid1 raid10 async_tx async_memcpy xor async_xor raid6_pq async_pq async_raid6_recov raid456 linear arc4 sha256_generic cbc Features: dm kms block usb md lvm2 luks Bootsplash: hardDrive (1920x1080), hardDrive (800x600) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c9 --- Comment #9 from Michal Marek <mmarek@suse.com> 2011-09-01 08:32:08 UTC --- WTF is "-d /dev/null" supposed to do? It might have accidentally worked before, but root device /dev/null is simply bogus. What happens if you remove this optino? BTW, can you post the exact osc commandline that triggers this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c10 --- Comment #10 from Bruno Friedmann <bruno@ioda-net.ch> 2011-09-01 10:41:04 UTC --- @Michal This is how that happen, in my obs/osc configuration I use an lvm volume as root file system (/dev/vgsys/lvobsbuild in my case ) I normally format it with ext3 osc build --local-package WARNING: source service from package or project will not be executed. This may not be the same build as on server! Building postgresql-plr.spec for openSUSE_Factory/x86_64 Getting buildinfo from server and store to /home/bruno/openSUSE/obs/home:bruno_friedmann/postgresql-plr/.osc/_buildinfo-openSUSE_Factory-x86_64.xml Getting buildconfig from server and store to /home/bruno/openSUSE/obs/home:bruno_friedmann/postgresql-plr/.osc/_buildconfig-openSUSE_Factory-x86_64 Updating cache of required packages 0.0% cache miss. 156/156 dependencies cached. Verifying integrity of cached packages using keys from openSUSE:Factory Writing build configuration Running build No initrd that provides virtio support found. virtio accelleration disabled. Run the following command as root to enable virtio: "env" "rootfstype=ext3" "mkinitrd" "-d" "/dev/null" "-m" "ext3 ext4 btrfs reiserfs binfmt_misc virtio_pci virtio_blk" "-k" "/boot/vmlinuz" "-i" "/boot/initrd-3.0.0-4-desktop-virtio" mkswap /dev/vgsys/lvobsswap mkswap: /dev/vgsys/lvobsswap: warning: don't erase bootbits sectors on whole disk. Use -f to force. Setting up swapspace version 1, size = 2097148 KiB no label, UUID=2c0e3690-4754-4cba-91d9-d6436c265b31 logging output to /var/tmp/build-root/.build.log... I don't know what the line would be if I was using file image for osc. Now if I replace /dev/null by /dev/vgsys/lvobsbuild it works and that's the good news. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c11 --- Comment #11 from Michal Marek <mmarek@suse.com> 2011-09-01 11:12:49 UTC --- And the /dev/null comes from your config (can you share the relevant parts of it?) or from osc / build? If osc / build do it, then we have to fix it somehow. If it's just your config, then you know how to fix it, apparently. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c12 --- Comment #12 from Bruno Friedmann <bruno@ioda-net.ch> 2011-09-01 12:43:19 UTC --- @Michal Here's all what is not a comment in my .oscrc file [general] apiurl = https://api.opensuse.org su-wrapper = sudo build-type = kvm build-device = /dev/vgsys/lvobsbuild build-swap = /dev/vgsys/lvobsswap build-memory = 2048 build-vmdisk-rootsize = 8192 build-vmdisk-swapsize = 1024 plaintext_passwd = 0 use_keyring = 1 [https://api.opensuse.org] user = bruno_friedmann email = bruno@ioda-net.ch trusted_prj=openSUSE:Factory Base:System Application:Geo Seems that's inside osc / build the advise is given. If you know better than me who or where to look for please do. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c13 --- Comment #13 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-09-05 14:00:19 CEST --- This is an autogenerated message for OBS integration: This bug (714650) was mentioned in https://build.opensuse.org/request/show/80931 Factory / yast2-live-installer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c14 Matwey Kornilov <matwey.kornilov@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matwey.kornilov@gmail.com --- Comment #14 from Matwey Kornilov <matwey.kornilov@gmail.com> 2013-04-06 19:02:47 MSD --- (In reply to comment #11)
And the /dev/null comes from your config (can you share the relevant parts of it?) or from osc / build? If osc / build do it, then we have to fix it somehow. If it's just your config, then you know how to fix it, apparently.
/dev/null comes from build. Look here: https://github.com/openSUSE/obs-build/blob/master/build#L1455 (sorry for http github link). Moreover, I can not regenerate initrd-virtio, because I use /dev/vda, which is missed from host system, and present only in virtual guests. So I am getting: "root device (/dev/vda) not found" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c15 --- Comment #15 from Bruno Friedmann <bruno@ioda-net.ch> 2013-04-07 10:01:58 UTC --- Created an attachment (id=533874) --> (http://bugzilla.novell.com/attachment.cgi?id=533874) Hackish way to ride off luks & lvm in virtio initrd for use with osc build Just for information I use this script to build my virtio initrd and remove support for unneeded stuff. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=714650 https://bugzilla.novell.com/show_bug.cgi?id=714650#c16 --- Comment #16 from Matwey Kornilov <matwey.kornilov@gmail.com> 2013-04-07 14:05:27 MSD --- I've just copied entire /lib/mkinitrd to my home, then edited few lines and run mkinitrd with -l. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com