Skip to content

Commit

Permalink
setup: fix setup with existing external disk
Browse files Browse the repository at this point in the history
Disk image mountpoints weren't created when setting up TeslaUSB
from scratch with an external drive from a prior install.
Fixes #765
  • Loading branch information
marcone committed Oct 28, 2024
1 parent 287491b commit 63415fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup/pi/setup-teslausb
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 275,7 @@ function update_backingfiles_fstab_entry () {
sed -i "\@^$filename .*@d" /etc/fstab
if [ -e "$filename" ]
then
mkdir -p "$mountpoint"
echo "$filename $mountpoint teslausb noauto 0 0" >> /etc/fstab
setup_progress "updated /etc/fstab for $mountpoint"
fi
Expand Down

0 comments on commit 63415fc

Please sign in to comment.