aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-conf/0001-update-kernel-remove-nopad.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/alpine-conf/0001-update-kernel-remove-nopad.patch')
-rw-r--r--main/alpine-conf/0001-update-kernel-remove-nopad.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-update-kernel-remove-nopad.patch b/main/alpine-conf/0001-update-kernel-remove-nopad.patch
new file mode 100644
index 0000000000..36cece148f
--- /dev/null
+++ b/main/alpine-conf/0001-update-kernel-remove-nopad.patch
@@ -0,0 +1,28 @@
+From 8beb8f42f4bd33227f7a57193631d5d3a951a8de Mon Sep 17 00:00:00 2001
+From: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
+Date: Sat, 9 Jan 2021 12:10:56 -0500
+Subject: [PATCH] update-kernel: remove nopad
+
+-nopad squashfs files cannot be mounted by Linux kernel.
+
+Fixes: 30e6933e71fc ("update-kernel: use -nopad -Xbcj for modloop")
+---
+ update-kernel.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/update-kernel.in b/update-kernel.in
+index d0b67e8..143e8ec 100644
+--- a/update-kernel.in
++++ b/update-kernel.in
+@@ -323,7 +323,7 @@ case $ARCH in
+ x86|x86_64) mksfs="-Xbcj x86" ;;
+ *) mksfs=
+ esac
+-mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error -nopad $mksfs
++mksquashfs $MODLOOP "$STAGING/$MODIMG" -comp xz -exit-on-error $mksfs
+
+ if [ -n "$MODLOOPSIGN" ]; then
+ sign_modloop "$STAGING/$MODIMG"
+--
+2.30.0
+