Bug 2297460 - Anaconda boot fails, missing kernel cmd arg, Kinoite 41 Beta
Summary: Anaconda boot fails, missing kernel cmd arg, Kinoite 41 Beta
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 40
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: anaconda-maint
QA Contact: Fedora Extras Quality Assurance
URL: https://pagure.io/fedora-kde/SIG/issu...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-12 10:20 UTC by Henning
Modified: 2024-10-23 10:40 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-10-16 18:14:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
rdsosreport (49.78 KB, application/zip)
2024-10-07 12:44 UTC, Henning
no flags Details

Description Henning 2024-07-12 10:20:45 UTC
(Broke my system testing composefs, cant recover, need to reinstall)

I think I had this issue before, maybe I just installed F39 back then and rebased. But I read that the state is still different depending on installed version, so want to avoid that.

I downloaded the Kinoite 40 ISO from the website download button, tried flashing with EtchDroid, KDE IsoImageWriter (Flathub) and Fedors media writer (Flathub). Always the same issue.

I get the attached error message after it stays at "starting Basic.target" for a while.

```
boot has failed. Possible reasons are missing inst.stage2 or inst.repo boot parameters on the kernel cmdline. Please verify that you have specified inst.stage2 or inst.repo.

Please also note that the "inst." prefix is now mandatory
```

KDE IsoImageWriter also didnt set the "bios-grub" parameter which may be an issue, may be not. The USB stick was not shown using secureboot, I had to turn it off.


[![1000026539.jpg](/fedora-kde/SIG/issue/raw/files/08105f5c864f69e1278b687320e038f528629abb643c8f6ed9368ec8d178e17d-1000026539.jpg)](/fedora-kde/SIG/issue/raw/files/08105f5c864f69e1278b687320e038f528629abb643c8f6ed9368ec8d178e17d-1000026539.jpg)

Hardware:
Clevo NV41MZ
Intel 11th gen i7
Crucial P5 Plus (that caused the multipath issue in F39)


Reproducible: Always

Steps to Reproduce:
1. Boot into the USB Stick
2. Wait
3. It freezes at basic.target and spits out repeating error messages
Actual Results:  
It does not boot

Expected Results:  
It says it needs 1 or 2 variables set. I dont know to what values

I suppose this may be because of the old Kernel?

I used Kinoite 39 and 40 without issues on that laptop

Comment 1 Henning 2024-07-12 19:43:15 UTC
I have the exact same issue on a Kinoite 39 ISO? I didnt have this before...

On 2 laptops, also on a Thinkpad T495.

From the other reported issue with the multipath NVME, I removed the NVME and still had the same issue

Comment 2 Henning 2024-07-18 22:55:22 UTC
I can reproduce the same on a pretty old Laptop, but still using the Kinoite 40-1.14 ISO

This is really problematic, I needed to clone my install with Clonezilla multiple times, and luckily had a backup. I cannot install it on new computers. 

I see that 1.14 is still the current ISO to download. I will try to find a nightly ISO and try that.

Help highly appreciated.

Comment 3 Henning 2024-07-18 22:59:50 UTC
Found Kinoite Nightly ISOs on https://openqa.fedoraproject.org/nightlies.html

Will try Fedora-Kinoite-ostree-x86_64-Rawhide-20240716.n.0.iso

Comment 4 Henning 2024-07-19 00:22:28 UTC
boot failed there too, same issue

Comment 5 Henning 2024-07-19 22:45:06 UTC
I have not tried if this is Kinoite specific. It is odd that I should be the only one to experience this.

I now tried 3 different laptops, all had NVMEs, 3 different ISO releases, same result.

Comment 6 Henning 2024-10-07 08:25:21 UTC
I can still reproduce this on the Kinoite 41 beta ISOs (https://torrent.fedoraproject.org/torrents/Fedora-KDE-Live-x86_64-41_Beta.torrent)

Device: Lenovo Flex Chromebook, Jasperlake Intel 11th Gen processor, running Coreboot with EDK2 firmware.

Booted from a USB stick.

ERRORS:

dracut-initqueue:
It seems that the boot has failed. Possible causes include missing inst.stage2 or inst.repo boot parameters on the kernel cmdline. Please verify that you have specified inst.stage2 or inst.repo.
Please also note that the "inst." prefix is now mandatory.

#### Installer errors encountered during boot: ####
#
Reason unknown
#
########## Anaconda installer errors end #######
dracut-initqueue: timeout, still waiting for following initqueue hooks:
/lib/dracut/hooks/initqueue/finished/devexists-\x2fdev\x22froot.sh: "[ /e "/dev/root"]"
dracut/initqueue? starting timeout scripts

### repeat above

Comment 7 Henning 2024-10-07 08:53:41 UTC
The Chromebook uses eMMC storage

I used Fedora Media Writer to flash the thumbdrive if this is relevant

ChatGPT gave me this answer (I corrected it a bit)

1. **`inst.stage2`**: This tells the installer where to find the installation image (which contains the Anaconda runtime). You typically point this to the ISO or installation source.
   
   Example:
   ```
   inst.stage2=hd:LABEL=Fedora-WS-Live-<version>-<arch>:/path
   ```
   - The label should match the filesystem label of the installation media. You can verify this by checking the thumbdrive label (e.g., using `lsblk` or `blkid`).
   
   If you mounted the ISO or image somewhere else, adjust accordingly (e.g., `LABEL=Fedora-Kinoite-Live-...`).

2. **`inst.repo`**: This tells the installer where to find the actual repository with the installation packages.
   
   Example:
   ```
   inst.repo=hd:LABEL=Fedora-WS-Live-<version>-<arch>:/path
   ```
   This can be set to the same ISO location as `inst.stage2`, or it could point to a network location, like a specific repository URL:
   ```
   inst.repo=http://download.fedoraproject.org/pub/fedora/linux/releases/<version>/Everything/<arch>/os/
   ```

### Evaluation for your case (Fedora Kinoite):

For Fedora Kinoite, the values would be different but follow the same format. Since it is OSTree-based, you might point to a different repository.

Try the following for your thumbdrive:

WRONG

```bash
inst.stage2=hd:LABEL=Fedora-Kinoite-Live-<version>-<arch>
inst.repo=hd:LABEL=Fedora-Kinoite-Live-<version>-<arch>
```

Make sure that:
- `<version>` is the correct Fedora version number you are using.
- `<arch>` is your architecture (`x86_64`, `aarch64`, etc.).
- The `LABEL` matches the actual filesystem label on your thumbdrive. Use `blkid` or `lsblk` to check the label.

### Correct usage examples:

If your thumbdrive is labeled `Fedora-Kinoite-41-x86_64`, the arguments might look like this:
```bash
inst.stage2=hd:LABEL=Fedora-Knt-ostree-x86_64-41
inst.repo=hd:LABEL=Fedora-Knt-ostree-x86_64-41
```


my thumbdrive is labelled "Fedora-Knt-ostree-x86_64-41" so I will try and use that

getting to system-vconsole-setup.service

I tried adding inst.repo behind the already correct and present inst.stage2 argument, with no effect

Comment 8 Henning 2024-10-07 12:44:44 UTC
Created attachment 2050836 [details]
rdsosreport

Got the report

Comment 9 Henning 2024-10-07 18:26:24 UTC
meanwhile, Fedora 37 Kinoite (ISO from the archives) still installs normally. I needed to disable secureboot, but it works.

Comment 10 Martin Kolman 2024-10-15 12:57:30 UTC
So to summarize from what I can tell:
- very old image seems to work (Fedora 37)
- there are sometimes issues with even putting the image on a flash drive
-> this could be a hardware failure on the flash drive side (suggest trying with different drive, just to eliminate this possibility)
-> this could be an issue with the installation flash drive creation tool (Fedora media writer, etc.)
-> this could be an issue with your downloaded image (suggest verifying the downloaded file chekcsumm if possible *and* using the "test this image and install" boot option if you can get this far)
- could this be an overall Fedora regression for your hardware ?
-> I would suggest trying the same flash drive + installable flesh drive creation tool, but a different Fedora edition (Workstation of Server) to see if it also has issues with booting

Comment 11 Henning 2024-10-16 18:14:42 UTC
you are right!

I have 2 flashdrives by the same brand. I reformatted them quite a lot, maybe 50 times?

I now tried on a different one, different brand and it worked.

Before, "Impression" Flatpak always crashed at the end. Fedora media writer didnt show any issues, just as dd.

I had the same on HeliumOS, based on AlmaLinux.

Well, that was strange.

Comment 12 Tomáš Bžatek 2024-10-23 10:40:56 UTC
Just an additional thought (and I think I was hit with something similar once) - try zeroing the drive first (dd if=/dev/zero of=/dev/xxx) before writing new ISO. Since the new ISO might be smaller to the previous one, some remaining structures may linger at the end of the new ISO data and might confuse the tools.

I certainly hope that any commonly used media writers will at least call `wipefs` first or something else that understands the Hybrid ISO structures.


Note You need to log in before you can comment on or make changes to this bug.