void-packages/srcpkgs/gpart/patches/0005-Add-LVM2-and-btrfs-to-list-of-supported-modules.patch
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

26 lines
614 B
Diff

From 1bf2faf1340d4ae946a1f0d1aecc2ddc4b79c4bc Mon Sep 17 00:00:00 2001
From: Baruch Even <baruch@ev-en.org>
Date: Wed, 25 Nov 2015 08:17:17 +0200
Subject: [PATCH 5/5] Add LVM2 and btrfs to list of supported modules
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git README.md README.md
index 7cd3e2d..330821b 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,8 @@ See file *INSTALL*.
qnx4 | 0x4F | QNX 4.x
beos | 0xEB | BeOS fs
xfs | 0x83 | SGI XFS filesystem
-
+ btrfs | 0x83 | BtrFS
+ LVM2 | 0x8E | LVM2
## Guessing modules
--
2.24.0