Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c1ad03b4602b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0ad6a76518a
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 25, 2017

  1. bcache-tools: add name to the source store path

    So that
    
     $ nix-build -A bcache-tools.src
    
    gives
    
     /nix/store/HASH-bcache-tools-1.0.7.tar.gz
    
    instead of
    
     /nix/store/HASH-v1.0.7.tar.gz
    
    (cherry picked from commit f12b0a2)
    bjornfor committed Jun 25, 2017
    Copy the full SHA
    37ec462 View commit details
  2. nixos/bcache: /bin/sh -> ${bash}/bin/sh

    Or else `services.udev.packages = [ bcache-tools ]` cannot be used.
    
    To not break bcache in the initrd I'm modifying this in stage-1.nix:
    
      -  --replace /bin/sh ${extraUtils}/bin/sh
      +  --replace ${bash}/bin/sh ${extraUtils}/bin/sh
    
    Reasoning behind that change:
    
    * If not modifying the /bin/sh pattern in any way, it will also match
      ${bash}/bin/sh, creating a broken path like
      /nix/store/HASH-bash/nix/store/HASH-bash/bin/sh in the udev rule file.
    
    * The addition of /bin/sh was done in 775f381
      ("stage-1: add bcache support"). It seems somewhat plausible that
      no new users have appeared since then and we can take this opportunity
      to back out of this change without much fear of regressions.
    
      If there _are_ regressions, they should be in the form of build time
      errors, not runtime (boot), due to how the udev rule output is checked
      for invalid path references. So low risk, IMHO.
    
    * An alternative approach could be to copy the /bin/sh substitute rule
      over to the non-initrd udev rules implementation in NixOS, but I think
      this way is better:
      - The rules file comes with a working path out of the box.
      - We can use more precise pattern matching when modifying the udev
        rules for the initrd.
    
    (cherry picked from commit 581226c)
    bjornfor committed Jun 25, 2017
    Copy the full SHA
    b71f5e3 View commit details
  3. nixos/bcache: add services.udev.packages = [ bcache-tools ]

    Adds /dev/disk/by-{id,label}/* symlinks for bcache device nodes, in the
    final rootfs.
    
    Symlinks will only be created for bcache devices that contain
    filesystems. So if you have a blank bcache device or run LVM on top of
    bcache you will not get this kind of symlink.
    
    (cherry picked from commit 5b48368)
    bjornfor committed Jun 25, 2017
    Copy the full SHA
    d0ad6a7 View commit details
Loading