mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2025-11-21 01:36:34 +00:00
Refactoring
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# shellcheck disable=SC2010 # ls | grep allowed
|
||||
# shellcheck source=/dev/null # Deactivate SC1090
|
||||
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||
|
||||
info "Setupscript for images started..."
|
||||
|
||||
@@ -167,15 +167,8 @@ root_mount_path="$working_folder""root/"
|
||||
mkdir -v "$boot_mount_path"
|
||||
mkdir -v "$root_mount_path"
|
||||
|
||||
info "Defining partition paths..."
|
||||
if [ "${sd_card_path:5:1}" != "s" ]
|
||||
then
|
||||
partion="p"
|
||||
else
|
||||
partion=""
|
||||
fi
|
||||
boot_partition_path=$sd_card_path$partion"1"
|
||||
root_partition_path=$sd_card_path$partion"2"
|
||||
boot_partition_path=$(echo_partition_name $sd_card_path "1")
|
||||
root_partition_path=$(echo_partition_name $sd_card_path "2")
|
||||
|
||||
mount_partitions(){
|
||||
info "Mount boot and root partition..."
|
||||
|
||||
Reference in New Issue
Block a user