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

manage_start_stop device attribute is now readonly #265013

Closed
arachnist opened this issue Nov 2, 2023 · 0 comments
Closed

manage_start_stop device attribute is now readonly #265013

arachnist opened this issue Nov 2, 2023 · 0 comments
Labels
0.kind: bug Something is broken

Comments

@arachnist
Copy link
Contributor

Describe the bug

hardware.usbStorage.manageStartStop option, introduced in #185688 on new kernels (at least 6.5.9) results in errors logged in system log, such as:

Nov 02 13:46:53 khas (udev-worker)[2402350]: 0:0:0:0: /nix/store/8q4ca9415p9vglhgcjv7q5d1f88qvxri-udev-rules/99-local.rules:13 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:08.1/0000:07:00.3/usb5/5-2/5-2:1.0/host0/target0:0:0/0:0:0:0/scsi_disk/0:0:0:0/manage_start_stop}, ignoring: Permission denied

This was introduced, in kernel, by torvalds/linux@3cc2ffe which made the manage_start_stop attribute readonly and introduced two new ones instead: manage_system_start_stop and manage_runtime_start_stop. Not sure what would be the correct behavior now

Steps To Reproduce

Steps to reproduce the behavior:

  1. Use a recent kernel
  2. Insert a usb storage device into system

Expected behavior

No error message. Possibly one or both of the new attributes being set.

Notify maintainers

CC: @bb2020

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

% nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.7, NixOS, 23.11 (Tapir), 23.11.20231031.65fc4de`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(ar): `"nixos"`
 - channels(root): `"agenix, bootspecsb, nixos"`
 - nixpkgs: `/nix/store/w457vs5vgbj0rhfrbq3bcb4ljcvpplj0-source`
@arachnist arachnist added the 0.kind: bug Something is broken label Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant