From 34b491e2eda7bcc30fff83b006a2e3e49ad8cc2d Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Sun, 4 Oct 2020 17:21:47 +0200 Subject: [PATCH] Solved bug --- scripts/image/setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/image/setup.sh b/scripts/image/setup.sh index 1a7f909..7822c30 100644 --- a/scripts/image/setup.sh +++ b/scripts/image/setup.sh @@ -248,8 +248,10 @@ if mount | grep -q "$boot_partition_path" fi fstab_path="$root_mount_path""etc/fstab" && +fstab_search_string=$(echo "/dev/mmcblk0p1"| sed -e 's/[\/&]/\\&/g') && +fstab_replace_string=$(echo "UUID=$boot_partition_uuid"| sed -e 's/[\/&]/\\&/g') && info "Seeding UUID to $fstab_path to avoid path conflicts..." && -sed -i "s/mmcblk0p1/UUID=$boot_partition_uuid/g" "$fstab_path" && +sed -i "s/$fstab_search_string/$fstab_replace_string/g" "$fstab_path" && info "Content of $fstab_path:$(cat "$fstab_path")" || error info "Define target paths..." &&