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:
parent
95b22138c4
commit
75613d9f69
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,8 @@ ROOT_PARTITION_RESIZED=0
|
||||||
PMOS_BOOT=""
|
PMOS_BOOT=""
|
||||||
PMOS_ROOT=""
|
PMOS_ROOT=""
|
||||||
|
|
||||||
|
CONFIGFS=/config/usb_gadget
|
||||||
|
|
||||||
# Redirect stdout and stderr to logfile
|
# Redirect stdout and stderr to logfile
|
||||||
setup_log() {
|
setup_log() {
|
||||||
# Disable kmsg ratelimiting for userspace (it gets re-enabled again before switch_root)
|
# 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
|
# $1: if set, skip writing to the UDC
|
||||||
setup_usb_network_configfs() {
|
setup_usb_network_configfs() {
|
||||||
# See: https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
|
# See: https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
|
||||||
CONFIGFS=/config/usb_gadget
|
|
||||||
local skip_udc="$1"
|
local skip_udc="$1"
|
||||||
|
|
||||||
if ! [ -e "$CONFIGFS" ]; then
|
if ! [ -e "$CONFIGFS" ]; then
|
||||||
|
|
Loading…
Reference in a new issue