mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-14 03:21:03 +01:00
Solved mount bug
This commit is contained in:
parent
c45520bfb1
commit
ab61c8941c
@ -56,7 +56,7 @@ mount_chroot_binds(){
|
|||||||
chroot_proc_mount_path="$root_mount_path""proc/" &&
|
chroot_proc_mount_path="$root_mount_path""proc/" &&
|
||||||
chroot_dev_mount_path="$root_mount_path""dev/" &&
|
chroot_dev_mount_path="$root_mount_path""dev/" &&
|
||||||
chroot_dev_pts_mount_path="$root_mount_path""dev/pts" &&
|
chroot_dev_pts_mount_path="$root_mount_path""dev/pts" &&
|
||||||
mount --bind "$boot_mount_path" "$root_mount_path""/boot" &&
|
mount --bind "$boot_mount_path" "$root_mount_path""boot" &&
|
||||||
mount --bind /dev "$chroot_dev_mount_path" &&
|
mount --bind /dev "$chroot_dev_mount_path" &&
|
||||||
mount --bind /sys "$chroot_sys_mount_path" &&
|
mount --bind /sys "$chroot_sys_mount_path" &&
|
||||||
mount --bind /proc "$chroot_proc_mount_path" &&
|
mount --bind /proc "$chroot_proc_mount_path" &&
|
||||||
|
@ -253,7 +253,7 @@ if [ "$transfer_image" = "y" ]
|
|||||||
error
|
error
|
||||||
|
|
||||||
info "Boot files will be transfered to device..." &&
|
info "Boot files will be transfered to device..." &&
|
||||||
mv -v "$root_mount_path/boot/"* "$boot_mount_path" ||
|
mv -v "$root_mount_path""boot/"* "$boot_mount_path" ||
|
||||||
error
|
error
|
||||||
elif [ "${image_path: -4}" = ".zip" ]
|
elif [ "${image_path: -4}" = ".zip" ]
|
||||||
then
|
then
|
||||||
@ -281,12 +281,16 @@ if [ "$transfer_image" = "y" ]
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
info "Start regular mounting procedure..."
|
info "Start regular mounting procedure..."
|
||||||
if mount | grep -q "$boot_mount_path" && mount | grep -q "$root_mount_path"
|
if ! mount | grep -q "$boot_mount_path"
|
||||||
then
|
then
|
||||||
info "Everything allready mounted. Skipping..."
|
info "$boot_mount_path is allready mounted..."
|
||||||
|
if ! mount | grep -q "$root_mount_path"
|
||||||
|
then
|
||||||
|
info "$root_mount_path is allready mounted..."
|
||||||
else
|
else
|
||||||
mount_partitions
|
mount_partitions
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
info "Define target paths..."
|
info "Define target paths..."
|
||||||
target_home_path="$root_mount_path""home/";
|
target_home_path="$root_mount_path""home/";
|
||||||
|
Loading…
Reference in New Issue
Block a user