adding pv for progress bar for RAM loading

This commit is contained in:
brent s. 2015-05-08 13:45:36 -04:00
parent 145a7d6271
commit ff24710b95
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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