View previous topic :: View next topic |
Author |
Message |
sMueggli Guru
Joined: 03 Sep 2022 Posts: 484
|
Posted: Thu Oct 31, 2024 10:06 am Post subject: |
|
|
In which directory are you invoking dracut? From /usr/src/linux? Or from a directory where the "arch" folder does not exist? |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 404 Location: Nijmegen
|
Posted: Thu Oct 31, 2024 10:36 am Post subject: |
|
|
Looking at the code in dracut, there is some cd'ing going on that I think is the cause of this problem. Though I don't quite understand why I cannot reproduce it on my end, probably I am not hitting the problematic cd before objcopy is run.
Anyway, please test this patch for dracut and let me know if it resolves your problem: https://github.com/dracut-ng/dracut-ng/pull/834 _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
m3101 n00b
Joined: 30 Oct 2024 Posts: 5 Location: Somewhere Under the Rainbow
|
Posted: Thu Oct 31, 2024 6:59 pm Post subject: |
|
|
Quote: | What filesystem are you using? |
Ext4, no fancy LVM/RAID setups.
FAT32 for the EFI partition.
Quote: | In which directory are you invoking dracut? From /usr/src/linux? Or from a directory where the "arch" folder does not exist? |
From /usr/src/linux
Invoking it with $(pwd)/arch instead of just the relative path works, oddly enough.
Will do. _________________ "We are a way for the universe to know itself." - Carl Sagan |
|
Back to top |
|
|
m3101 n00b
Joined: 30 Oct 2024 Posts: 5 Location: Somewhere Under the Rainbow
|
Posted: Thu Oct 31, 2024 7:19 pm Post subject: |
|
|
The new script seems to have fixed the issue!
Running the old one still yields the objcopy error, but the new one, pulled from https://github.com/Nowa-Ammerlaan/dracut-ng/tree/main, runs perfectly and yields a bootable working image for my system.
Parameters:
Code: | dracut --kver XXXX --kernel-image arch/x86/boot/bzImage --uefi --hostonly --fstab --kmoddir XXXX |
Thanks for the agility, there. I'm used to stuff like this taking at the very least, a few weeks. _________________ "We are a way for the universe to know itself." - Carl Sagan |
|
Back to top |
|
|
sMueggli Guru
Joined: 03 Sep 2022 Posts: 484
|
Posted: Fri Nov 01, 2024 9:45 am Post subject: |
|
|
Do /lib/modules/XXXX/vmlinuz or /boot/vmlinuz-XXXX exist? |
|
Back to top |
|
|
|