mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
image_builder: delete comments & spaces
This commit is contained in:
@@ -166,9 +166,7 @@ copy_to_chroot() {
|
||||
local DEV_IMAGE=$(losetup -Pf $1 --show)
|
||||
sleep 0.5
|
||||
|
||||
# Get temp directory to mount image
|
||||
local MOUNT_POINT=$(mktemp -d)
|
||||
|
||||
echo_stamp "Mount dirs ${MOUNT_POINT} & ${MOUNT_POINT}/boot"
|
||||
mount "${DEV_IMAGE}p2" ${MOUNT_POINT}
|
||||
mount "${DEV_IMAGE}p1" ${MOUNT_POINT}/boot
|
||||
@@ -179,9 +177,7 @@ copy_to_chroot() {
|
||||
&& echo_stamp "Created ${dir_name}" "SUCCESS"
|
||||
fi
|
||||
|
||||
# Copy script into chroot fs
|
||||
cp -r "$2" "${MOUNT_POINT}$3"
|
||||
|
||||
umount_system ${MOUNT_POINT} ${DEV_IMAGE}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user