mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2025-11-21 09:46:25 +00:00
Optimized chroot procedures
This commit is contained in:
@@ -50,7 +50,7 @@ mount_partitions(){
|
||||
error
|
||||
}
|
||||
|
||||
mount_binds(){
|
||||
mount_chroot_binds(){
|
||||
info "Mount chroot environments..." &&
|
||||
chroot_sys_mount_path="$root_mount_path""sys/" &&
|
||||
chroot_proc_mount_path="$root_mount_path""proc/" &&
|
||||
@@ -63,3 +63,15 @@ mount_binds(){
|
||||
mount --bind /dev/pts "$chroot_dev_pts_mount_path" ||
|
||||
error
|
||||
}
|
||||
|
||||
copy_qemu(){
|
||||
info "Copy qemu binary..." &&
|
||||
cp -v /usr/bin/qemu-arm-static "$root_mount_path""usr/bin/" ||
|
||||
error
|
||||
}
|
||||
|
||||
copy_resolve_conf(){
|
||||
info "Copy resolve.conf..." &&
|
||||
cp -v /etc/resolv.conf "$root_mount_path""etc/" ||
|
||||
warning "Failed. Propably there is no internet connection available."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user