diff --git a/extra/pre-build.d/usr/lib/initcpio/hooks/archiso-custom b/extra/pre-build.d/usr/lib/initcpio/hooks/archiso-custom index 673fc26..2236226 100644 --- a/extra/pre-build.d/usr/lib/initcpio/hooks/archiso-custom +++ b/extra/pre-build.d/usr/lib/initcpio/hooks/archiso-custom @@ -46,7 +46,8 @@ _mnt_sfs() { if [[ "${copytoram}" == "y" ]]; then msg -n ":: Copying squashfs image to RAM..." - if ! cp "${img}" "/run/archiso/copytoram/${img_fullname}" ; then + #if ! cp "${img}" "/run/archiso/copytoram/${img_fullname}" ; then + if ! pv -pterabT "${img}" > "/run/archiso/copytoram/${img_fullname}" ; then echo "ERROR: while copy '${img}' to '/run/archiso/copytoram/${img_fullname}'" launch_interactive_shell fi diff --git a/extra/pre-build.d/usr/lib/initcpio/install/archiso-custom b/extra/pre-build.d/usr/lib/initcpio/install/archiso-custom index e506271..833e982 100644 --- a/extra/pre-build.d/usr/lib/initcpio/install/archiso-custom +++ b/extra/pre-build.d/usr/lib/initcpio/install/archiso-custom @@ -13,6 +13,7 @@ build() { add_binary losetup add_binary mountpoint add_binary truncate + add_binary pv add_file /usr/lib/udev/rules.d/60-cdrom_id.rules add_file /usr/lib/udev/rules.d/10-dm.rules