postmarketos-initramfs: make CONFIGFS global (MR 5000)

This variable is being used in more places, just make it global.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-04-10 02:06:23 +02:00 committed by Clayton Craft
parent 95b22138c4
commit 75613d9f69
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -5,6 +5,8 @@ ROOT_PARTITION_RESIZED=0
PMOS_BOOT=""
PMOS_ROOT=""
CONFIGFS=/config/usb_gadget
# Redirect stdout and stderr to logfile
setup_log() {
# Disable kmsg ratelimiting for userspace (it gets re-enabled again before switch_root)
@ -633,7 +635,6 @@ setup_usb_configfs_udc() {
# $1: if set, skip writing to the UDC
setup_usb_network_configfs() {
# See: https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
CONFIGFS=/config/usb_gadget
local skip_udc="$1"
if ! [ -e "$CONFIGFS" ]; then