mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2025-11-21 09:46:25 +00:00
Implemented set_device_path function
This commit is contained in:
@@ -3,14 +3,19 @@
|
||||
# shellcheck disable=SC2015 # Deactivating bool hint
|
||||
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
|
||||
|
||||
info "Starting chroot..."
|
||||
|
||||
set_device_path
|
||||
|
||||
info "Making mount dir..." &&
|
||||
mkdir -p /mnt/raspbian ||
|
||||
error
|
||||
|
||||
|
||||
root_mount_path="/mnt/raspbian"
|
||||
boot_mount_path="/mnt/raspbian/boot"
|
||||
root_partition_path=$(echo_partition_name $1 "2")
|
||||
boot_partition_path=$(echo_partition_name $1 "1")
|
||||
root_partition_path=$(echo_partition_name $device_path "2")
|
||||
boot_partition_path=$(echo_partition_name $device_path "1")
|
||||
|
||||
info "Mount partitions..."
|
||||
mount -o rw "$boot_partition_path" "$boot_mount_path" ||
|
||||
|
||||
Reference in New Issue
Block a user