From d561f37daa7252a213f5e0d269e131a07e6d084a Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Thu, 22 Jul 2021 23:10:06 +0900 Subject: [PATCH] enable g_mass_storage --- apkovl/etc/modprobe.d/g_mass_storage.conf | 1 + apkovl/etc/modules-load.d/g_mass_storage.conf | 1 + bin/build | 2 +- usercfg.txt | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 apkovl/etc/modprobe.d/g_mass_storage.conf create mode 100644 apkovl/etc/modules-load.d/g_mass_storage.conf create mode 100644 usercfg.txt diff --git a/apkovl/etc/modprobe.d/g_mass_storage.conf b/apkovl/etc/modprobe.d/g_mass_storage.conf new file mode 100644 index 0000000..cf8ee44 --- /dev/null +++ b/apkovl/etc/modprobe.d/g_mass_storage.conf @@ -0,0 +1 @@ +options g_mass_storage file=/dev/mmcblk0p1 diff --git a/apkovl/etc/modules-load.d/g_mass_storage.conf b/apkovl/etc/modules-load.d/g_mass_storage.conf new file mode 100644 index 0000000..fd5ae93 --- /dev/null +++ b/apkovl/etc/modules-load.d/g_mass_storage.conf @@ -0,0 +1 @@ +g_mass_storage diff --git a/bin/build b/bin/build index 9fc57ec..20d98f5 100755 --- a/bin/build +++ b/bin/build @@ -11,5 +11,5 @@ mkdir dist bin/download "${version}" dist docker-compose run --rm minirootfs sh -c 'apk update && apk add' ssh-keygen -A -f apkovl -cp -a cache dist +cp -a usercfg.txt cache -t dist tar czf dist/localhost.apkovl.tar.gz --owner=0 --group=0 -C apkovl . diff --git a/usercfg.txt b/usercfg.txt new file mode 100644 index 0000000..dcff45e --- /dev/null +++ b/usercfg.txt @@ -0,0 +1 @@ +dtoverlay=dwc2