mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-26 00:41:04 +01:00
Solved bug
This commit is contained in:
parent
c1c94217eb
commit
34b491e2ed
@ -248,8 +248,10 @@ if mount | grep -q "$boot_partition_path"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fstab_path="$root_mount_path""etc/fstab" &&
|
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..." &&
|
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 "Content of $fstab_path:$(cat "$fstab_path")" || error
|
||||||
|
|
||||||
info "Define target paths..." &&
|
info "Define target paths..." &&
|
||||||
|
Loading…
Reference in New Issue
Block a user