[Bug 1167565] New: JeOS-olinuxinolime: empty root in dracut fails boot
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 Bug ID: 1167565 Summary: JeOS-olinuxinolime: empty root in dracut fails boot Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: armv7 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: guillaume.gardet@arm.com Reporter: lnussel@suse.com QA Contact: qa-bugs@suse.de CC: fvogt@suse.com Found By: --- Blocker: --- openSUSE-Tumbleweed-ARM-JeOS-olinuxinolime.armv7l-2020.03.10-Snapshot20200317 does not boot. Turns out dracut fails at pre-mount. Looking at /dracut-state.sh it shows root="". Adding root=UUID=<UUIDOFIMAGE> to the kernel command line makes it boot. Is dracut supposed to figure out the root device itself like that or is the kiwi config supposed to add a root= parameter? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c1 Fabian Vogt <fvogt@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com, | |ms@suse.com Flags| |needinfo?(lnussel@suse.com) | |, needinfo?(ms@suse.com) --- Comment #1 from Fabian Vogt <fvogt@suse.com> --- root=UUID=... is added by kiwi to /etc/sysconfig/bootloader: [ 3463s] [ INFO ]: 02:16:15 | --> DEFAULT_APPEND:"loglevel=3 splash=silent plymouth.enable=0 console=ttyS0,115200n8 root=UUID=08f031d3-88b2-4949-bb58-44d0fb5551e2 rw " Kiwi calls grub2-mkconfig, but sysconfig is only read by perl-Bootloader, so this is AFAICT a noop. In additon to that, the emitted grub.cfg is also patched by kiwi if it's an OBS build: https://github.com/OSInside/kiwi/pull/1289/files @ms: Can you explain how ^ is supposed to work? @lnussel: What's in grub.cfg, /etc/default/grub and /etc/sysconfig/bootloader? There are some errors in the editbootinstall script later, but I don't think they're related: /usr/src/packages/KIWI-oem/build/image-root/image/edit_boot_install.sh: line 45: pushd: /usr/src/packages/KIWIROOT-oem/: No such file or directory chattr: Operation not supported while setting flags on var/lib/libvirt/images mount: /usr/src/packages/KIWI-oem/build/image-root/mnt-boot: special device /dev/mapper/loop0p1 does not exist. This leads to boot.scr not being copied, but apparently that doesn't break it I really recommend using set -e for all kiwi scripts. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c2 --- Comment #2 from Guillaume GARDET <guillaume.gardet@arm.com> --- @lnussel, are you booting from grub or u-boot tries to load kernel/initrd directly? If grub is shown, could check the grub kernel line, please? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c3 --- Comment #3 from Ludwig Nussel <lnussel@suse.com> --- # grep -v '^#\|^$' /etc/default/grub /etc/sysconfig/bootloader /etc/default/grub:GRUB_DEFAULT=0 /etc/default/grub:GRUB_HIDDEN_TIMEOUT=0 /etc/default/grub:GRUB_HIDDEN_TIMEOUT_QUIET=true /etc/default/grub:GRUB_TIMEOUT=10 /etc/default/grub:GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 splash=silent plymouth.enable=0 console=ttyS0,115200n8" /etc/default/grub:GRUB_CMDLINE_LINUX="" /etc/default/grub:GRUB_BACKGROUND= /etc/default/grub:GRUB_THEME=/boot/grub2/themes/openSUSE/theme.txt /etc/default/grub:GRUB_DISTRIBUTOR="openSUSE Tumbleweed" /etc/default/grub:GRUB_GFXMODE=800x600 /etc/default/grub:GRUB_TERMINAL="gfxterm" /etc/sysconfig/bootloader:DEFAULT_APPEND="loglevel=3 splash=silent plymouth.enable=0 console=ttyS0,115200n8 root=UUID=ef2c5dab-a30b-494e-9f54-b951f779c653 rw " /etc/sysconfig/bootloader:FAILSAFE_APPEND="loglevel=3 splash=silent plymouth.enable=0 console=ttyS0,115200n8 root=UUID=ef2c5dab-a30b-494e-9f54-b951f779c653 rw ide=nodma apm=off noresume edd=off nomodeset 3 " /etc/sysconfig/bootloader:LOADER_LOCATION=none /etc/sysconfig/bootloader:LOADER_TYPE=grub2-efi -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c4 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(lnussel@suse.com) | --- Comment #4 from Ludwig Nussel <lnussel@suse.com> --- I used the image as is so it uses u-boot to load the kernel directly. I wonder whether it would make sense to adopt https://systemd.io/DISCOVERABLE_PARTITIONS/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c5 --- Comment #5 from Guillaume GARDET <guillaume.gardet@arm.com> --- (In reply to Ludwig Nussel from comment #4)
I used the image as is so it uses u-boot to load the kernel directly.
If we want to use Grub, u-boot config needs to have CONFIG_DISTRO_DEFAULTS=y which is not the case for this board. So, it currently uses boot.scr script which does not have the root="..." info anymore. I can try to enable CONFIG_DISTRO_DEFAULTS=y for this board in u-boot-a10-olinuxino-lime. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c6 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(lnussel@suse.com) --- Comment #6 from Guillaume GARDET <guillaume.gardet@arm.com> --- (In reply to Guillaume GARDET from comment #5)
I can try to enable CONFIG_DISTRO_DEFAULTS=y for this board in u-boot-a10-olinuxino-lime.
It turns that CONFIG_DISTRO_DEFAULTS=y is already enabled. Could you stop autoboot in u-boot and share the result of 'printenv' command and also a full boot log, please? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |guillaume.gardet@arm.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c7 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(lnussel@suse.com) | --- Comment #7 from Guillaume GARDET <guillaume.gardet@arm.com> --- No need for the logs, kiwi should build the image in EFI mode. I am building an image to test. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c10 Guillaume GARDET <guillaume.gardet@arm.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Guillaume GARDET <guillaume.gardet@arm.com> --- Latest image should work. Please reopen if this is not the case. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c11 --- Comment #11 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1167565) was mentioned in https://build.opensuse.org/request/show/888681 Factory:ARM / JeOS -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c12 --- Comment #12 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1167565) was mentioned in https://build.opensuse.org/request/show/924915 Factory:ARM / JeOS -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1167565 http://bugzilla.opensuse.org/show_bug.cgi?id=1167565#c13 --- Comment #13 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1167565) was mentioned in https://build.opensuse.org/request/show/924923 Factory:ARM / JeOS -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com