Merge pull request #39 from basvandewiel/35-bug-mount-at-boot-doesnt-work

Bugfix: RO_ROOT was unbound.
This commit is contained in:
Bas v.d. Wiel 2023-03-12 16:35:05 +01:00 committed by GitHub
commit cd04cfdb19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ EOF
# Remove the mount-at-boot script
function remove_mount_at_boot() {
RO_ROOT="no"
if [ "${MOUNT_AT_BOOT}" != "yes" ]; then
local ORIGINAL_SCRIPT_PATH="$0"
local NET_UP_SCRIPT="/etc/network/if-up.d/$(basename ${ORIGINAL_SCRIPT_PATH%.*})"