lol

nixos/stage-1-systemd: fix initrd-fstab generation for bind mounts, again

See https://github.com/NixOS/nixpkgs/pull/185089

Nick Cao 0fecd7ed 8a86b98f

+1 -2
+1 -2
nixos/modules/tasks/filesystems.nix
··· 188 188 # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces 189 189 escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; 190 190 in fstabFileSystems: { rootPrefix ? "" }: concatMapStrings (fs: 191 - (optionalString (isBindMount fs) (escape rootPrefix)) 192 - + (if fs.device != null then escape fs.device 191 + (if fs.device != null then escape fs.device 193 192 else if fs.label != null then "/dev/disk/by-label/${escape fs.label}" 194 193 else throw "No device specified for mount point ‘${fs.mountPoint}’.") 195 194 + " " + escape fs.mountPoint