bigtreetech / bigtreetech/CB1

U-disk Automount setup in BTT/KIAUH/CB1 custom function menu fails with V2.3.3 images.

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
496
Forks
86
PR merge metrics
No merged PRs in 30d

Description

This issue probably belongs in the bigtreetech/kiauh repository but issues don't seem to be enabled there.

With the CB1 images dated 20230712, version V2.3.3, if you install the CB1 branch of the Big Tree Tech fork of KIAUH, the "[U-disk Automount]" function in the Lodge custom function menu fails when setting up flash drive automount. This is because it expects a directory /etc/scripts to exist and this directory doesn't exist in these images. So when the script gets to the line "sudo cp ${LCF_SRC_DIR}/usb/usb_udev.sh /etc/scripts" instead of copying usb_udev.sh into /etc/scripts, it copies usb_udev.sh to a file called scripts in /etc.

A workaround is to create the directory /etc/scripts before running the U-disk Automount setup. But a better solution would be for the script to check for the existence of the /etc/scripts directory and create the directory if it does not exist.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the CB1 branch of the Big Tree Tech KIAUH custom-function menu and find the U-disk Automount setup that references usb_udev.sh. Reproduce the setup on a 20230712 V2.3.3 image without /etc/scripts, then verify that the automount setup completes and places the script in the intended directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.