-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
linux5.15 package install scripts fails if /boot is mounted on vfat fstype #47011
Comments
I don't think that is the issue, /boot on vfat for efi is a pretty standard setup. Can you maybe strace this? |
@Duncaen sure, I can. Here I was using 'xbps-install -Su' command, would you like to just strace it, and try to find calls around error/post log? Currently I'm only able to downgrade linux kernel package, as I have the newest one installed today. Can you guide me how to do it, as simple P.S. My guess about chmod/chown is because after each command/error, the offending file from error message is unpacked to /boot, but the whole command aborts while the next (exactly the same xbps-install -Su) invocation moves forward and fails on another file, then third call succeeds. I might be wrong though. |
don't use the full path, just the package name |
@classabbyamp appreciate you want to help. Unfortunately, it's not the path.
as explained here: https://docs.voidlinux.org/xbps/advanced-usage.html?highlight=xdowng#via-xdowngrade strace results for this issue follows shortly in my next comment. |
@Duncaen as I expected, this is due to the chown, strace is:
|
I wonder if this is either because of a specific kernel version or different mount flags than everyone else uses. This works fine for the raspberry pi images which have vfat /boot by default. And for other x86_64 systems, like the one I'm currently writing from where it works fine too. |
Correctly handling this in xbps would require quite a bit of rework since currently libarchive extracts, handles the mode, and file times. xbps would have to manually chown the files and then I guess ignore chown errors on vfat, so that EPERM from open/write don't get ignored. |
what's the output of |
@Duncaen @classabbyamp I do use different /boot mount flags, so this might be the problem. Let me know any tests you want to do it.
|
Weird mine are effectively the same, except Maybe its the |
Doing tests, appreciate your help @Duncaen |
Seems like this is caused by specific configuration options and the errors are not unexpected. If you have convincing evidence that this issue is not caused by mount options, please let us know. |
I can confirm that adding quiet to the mount options of /boot resolved problem. |
The package contains files that are owned by root, xbps tries to set the owner/group. I don't think xbps should ignore failures of setting the expected owner, even making this filesystem specific seems wrong. What is the reason to set |
Thanks for answering it! The actual reason is to have ability to writeable (some) files on /boot vfat partition, while not allowing all users to write them. Here gid points to some wheels/adm gid which only some users belong. Due to the limitations of vfat fs, it's widely adopted to use some form of gid/uid/fmask/dmask on such fs, to have simple access control. (Just to make it clear: xbps is being run under root) But moving back to the error: I consider FS settings machine, not void specific. One can ask, why using vfat on this filesystem? ;) |
Is this a new report?
Yes
System Info
Void x86_musl
Package(s) Affected
linux5.15-5.15.*
Does a report exist for this bug with the project's home (upstream) and/or another distro?
no, this is void specific bug.
Expected behaviour
package linux5.15 is able to install even if /boot is a vfat partition, and chown/chmod commands may return errors, which are ignored by install scripts of linux5 package
Actual behaviour
If the /boot (where /vmlinuz-XXX and config-XXX and initramfs-XXX are installed) is vfat filesystem (not the ext4/btrfs/others), installation of linux5.15 package fails, due to the inability to set ownership and permissions during xbps install.
What's funny, files ARE copied to /boot, but the install process fails with error after copy. So it is enough to run xpbs install three times in a row (without any fixes) and the third run, completes fine.
Important: this bug is old, it was not introduced recently, but probably been with us for a long time.
Error messages:
Steps to reproduce
The text was updated successfully, but these errors were encountered: