mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-25 16:31:03 +01:00
30 lines
539 B
Bash
30 lines
539 B
Bash
#!/bin/bash
|
|
# shellcheck source=/dev/null # Deactivate SC1090
|
|
# shellcheck disable=SC2015 # Deactivating bool hint
|
|
# shellcheck disable=SC2154 # Deactivate not referenced link
|
|
source "$(dirname "$(readlink -f "${0}")")/base.sh" || (echo "Loading base.sh failed." && exit 1)
|
|
|
|
info "Starting chroot..."
|
|
|
|
set_device_path
|
|
|
|
make_working_folder
|
|
|
|
make_mount_folders
|
|
|
|
set_partition_paths
|
|
|
|
mount_partitions
|
|
|
|
mount_chroot_binds
|
|
|
|
copy_qemu
|
|
|
|
copy_resolve_conf
|
|
|
|
info "Bash shell starts..." &&
|
|
chroot "$root_mount_path" /bin/bash ||
|
|
error
|
|
|
|
destructor
|