nixpkgs/pkgs/os-specific/linux/autofs/create-patches-v5.sh
Arvin Moezzi 2fed56b42f autofs: upgrade 5.0.5 -> 5.0.8
* upstream: patches have been moved into the patches-5.0.x directory
* disable autofs preparing and then moving mount points

  "With the introduction of systemd the root filesystem is now usually
  marked as shared instead of private as part of the systemd sandbox
  functionality. As a consequence moving a mount from one mount point to
  another is not allowed."
2013-11-21 21:49:47 +01:00

19 lines
564 B
Bash

#!/bin/sh
#
# Use this script with the upstream sorted list of patches
# curl ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.{x+1}/patch_order-5.0.x |
# grep -v '^#' | sh create-patches-v5.sh
BASEURL=mirror://kernel/linux/daemons/autofs/v5/patches-5.0.9;
echo '# File created automatically' > patches-v5.nix
echo 'fetchurl :' >> patches-v5.nix
echo '[' >> patches-v5.nix
while read a; do
URL=$BASEURL/$a
HASH=`nix-prefetch-url $URL`
echo "(fetchurl { url = $URL; sha256 = \"$HASH\"; })" >> patches-v5.nix
done
echo ']' >> patches-v5.nix