Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not load /boot/System.map-* #7807

Closed
mskarbek opened this issue Aug 18, 2018 · 1 comment · Fixed by #11836
Closed

could not load /boot/System.map-* #7807

mskarbek opened this issue Aug 18, 2018 · 1 comment · Fixed by #11836
Labels
Component: Packaging custom packages

Comments

@mskarbek
Copy link
Contributor

System information

Type Version/Name
Distribution Name Fedora
Distribution Version 28
Linux Kernel 4.17.14-202
Architecture x86_64
ZFS Version 0.7.9-1
SPL Version 0.7.9-1

Describe the problem you're observing

During installation of kmod packages (build from release archives) DNF shows kmod-spl and kmod-zfs scriptlets errors:

  Installing       : kmod-spl-4.17.14-202.fc28.x86_64-0.7.9-1.fc28.x86_64                    8/15 
  Running scriptlet: kmod-spl-4.17.14-202.fc28.x86_64-0.7.9-1.fc28.x86_64                    8/15 
depmod: FATAL: could not load /boot/System.map-4.17.14-202.fc28.x86_64: No such file or directory
  Installing       : kmod-zfs-4.17.14-202.fc28.x86_64-0.7.9-1.fc28.x86_64                   13/15 
  Running scriptlet: kmod-zfs-4.17.14-202.fc28.x86_64-0.7.9-1.fc28.x86_64                   13/15 
depmod: FATAL: could not load /boot/System.map-4.17.14-202.fc28.x86_64: No such file or directory

Describe how to reproduce the problem

Reproducible each time you try to install kmod packages on a fresh and fully updated Fedora 28 installation with systemd-boot instead of GRUB set up as a boot manager. I'm not using DKMS packages so can't provide data on that at the moment.

Additional info

Fedora no longer puts kernel, initramfs, and other files into /boot, instead it creates /boot/<machine-id>/<kernel-version> directory and follows Boot Loader Specification when detects systemd-boot.

@behlendorf behlendorf added the Component: Packaging custom packages label Aug 21, 2018
@mskarbek
Copy link
Contributor Author

This is still an issue. Current versions:

Type Version/Name
Distribution Name Fedora
Distribution Version 32
Linux Kernel 5.6.12-300
Architecture x86_64
ZFS Version 0.8.4

During installation:

  Running scriptlet: kmod-zfs-5.6.12-300.fc32.x86_64-0.8.4-1.fc32.x86_64
depmod: FATAL: could not load /boot/System.map-5.6.12-300.fc32.x86_64: No such file or directory

Correct command in the scriptlet should be:

/usr/sbin/depmod -aeF /usr/lib/modules/5.6.12-300.fc32.x86_64/System.map 5.6.12-300.fc32.x86_64

ZFS build form the officially released tar achieve with kmod instead of DKMS.

behlendorf pushed a commit that referenced this issue Apr 7, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes #7807 
Closes #11836
mcmilk pushed a commit to mcmilk/zfs that referenced this issue Apr 10, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes openzfs#7807 
Closes openzfs#11836
adamdmoss pushed a commit to adamdmoss/zfs that referenced this issue Apr 10, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes openzfs#7807 
Closes openzfs#11836
mcmilk pushed a commit to mcmilk/zfs that referenced this issue Apr 10, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes openzfs#7807 
Closes openzfs#11836
behlendorf pushed a commit to behlendorf/zfs that referenced this issue Apr 14, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes openzfs#7807 
Closes openzfs#11836
sempervictus pushed a commit to sempervictus/zfs that referenced this issue May 31, 2021
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Marcin Skarbek <git@skarbek.name>
Closes openzfs#7807 
Closes openzfs#11836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Packaging custom packages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants