1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/tools/filesystems
Bjørn Forsman 581226cfb4 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 775f381a9e
  ("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.
2017-06-10 17:10:49 +02:00
..
9pfs
aefs
afpfs-ng
archivemount
avfs
bashmount
bcache-tools nixos/bcache: /bin/sh -> ${bash}/bin/sh 2017-06-10 17:10:49 +02:00
bcachefs-tools bcachefs-tools: 2017-05-08 -> 2017-05-12 2017-05-19 13:24:50 +01:00
bindfs
bonnie bonnie: fix on Darwin 2017-04-10 23:08:14 -04:00
boxfs
btrfs-dedupe
btrfs-progs Revert "btrfs-progs: 4.8.2 -> 4.10.2" 2017-04-11 09:54:43 +03:00
ceph Introduce mapNullable into lib and use it in a few places 2017-04-17 17:04:04 -04:00
chunkfs
ciopfs
convoy
curlftpfs
darling-dmg
davfs2
dislocker
disorderfs
djmount
dosfstools fix dosfstools build on darwin 2017-05-13 11:27:19 +01:00
duff
duperemove
e2fsprogs
e2tools
encfs
exfat
extundelete
f2fs-tools f2fs-tools: 1.7.0 -> 1.8.0 2017-04-10 17:09:22 +03:00
f3
fatresize
fatsort
fsfs
fuse-7z-ng
fuseiso
fusesmb
gcsfuse gcsfuse: make linux-only 2017-04-08 23:34:52 -05:00
genext2fs
genimage
genromfs
gitfs
glusterfs glusterfs: Upgrade to 3.10.2 2017-05-19 16:56:31 +02:00
go-mtpfs
gocrypfs
gpart
grive
grive2
hfsprogs
httpfs
hubicfuse
ifuse
irods
jfsutils
jmtpfs
lizardfs
mergerfs
mhddfs
mp3fs
mtdutils
mtools mtools: fix build on darwin 2017-04-04 23:32:06 +01:00
mtpfs
netatalk
nilfs-utils
nixpart
ntfs-3g ntfs3g: 2016.2.22 -> 2017.3.23 2017-04-09 21:48:25 +03:00
rdfind
reiser4progs
reiserfsprogs
relfs
s3backer
s3fs
securefs
smbnetfs
snapraid
squashfs
sshfs-fuse sshfs-fuse: 2.7 -> 2.9 2017-05-14 15:22:09 +03:00
svnfs
tmsu
udftools
unionfs-fuse
vmfs-tools
wdfs
xfsprogs
xtreemfs
yandex-disk
zerofree
zfstools
zkfuse