summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-05-27 00:28:05 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2012-05-29 23:48:24 -0300
commit8e9c65fa5d9be0dc410a0882f0c7dee6beec09f3 (patch)
treefb258ef052ce88d634bf1257e62674a664d72dd9 /archiso/mkarchiso
parent0b39407e68ee8cceb0668397e54d0d55d3c1ac00 (diff)
downloadarchiso32-8e9c65fa5d9be0dc410a0882f0c7dee6beec09f3.tar.xz
[archiso] mkarchiso: improve info messages
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso13
1 files changed, 8 insertions, 5 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 75eb9cb..1b2a024 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -233,7 +233,7 @@ _pacman ()
# Cleanup root-image
_cleanup () {
- _msg_info "Cleaning up what we can on root-image"
+ _msg_info "Cleaning up what we can on root-image..."
# remove the initcpio images that were generated for the host system
if [[ -d "${work_dir}/root-image/boot" ]]; then
@@ -269,6 +269,7 @@ _cleanup () {
if [[ ! -L "${work_dir}/root-image/etc/mtab" ]]; then
ln -sf "/proc/self/mounts" "${work_dir}/root-image/etc/mtab"
fi
+ _msg_info "Done!"
}
# Makes a SquashFS filesystem image of file/directory passes as argument with desired compression.
@@ -327,7 +328,7 @@ _mkfs () {
fi
fi
- _msg_info "Creating ${_fs_type} image of ${_fs_size} MiB"
+ _msg_info "Creating ${_fs_type} image of ${_fs_size} MiB..."
rm -f "${_fs_img}"
dd of="${_fs_img}" count=0 bs=1M seek=${_fs_size} &> /dev/null
local _qflag=""
@@ -354,9 +355,11 @@ _mkfs () {
_msg_error "Invalid filesystem: ${_fs_type}" 1
;;
esac
+ _msg_info "Done!"
_mount_fs "${_fs_img}" "${work_dir}/mnt/${_src}"
- _msg_info "Copying '${_fs_src}/' to '${work_dir}/mnt/${_src}/'"
+ _msg_info "Copying '${_fs_src}/' to '${work_dir}/mnt/${_src}/'..."
rsync -aH "${_fs_src}/" "${work_dir}/mnt/${_src}/"
+ _msg_info "Done!"
_umount_fs "${work_dir}/mnt/${_src}"
}
@@ -367,7 +370,7 @@ command_checksum () {
for _chk_arch in i686 x86_64; do
if _is_directory_changed "${work_dir}/iso/${install_dir}" "${work_dir}/iso/${install_dir}/checksum.${_chk_arch}.md5"; then
- _msg_info "Creating checksum file for self-test (${_chk_arch})"
+ _msg_info "Creating checksum file for self-test (${_chk_arch})..."
cd "${work_dir}/iso/${install_dir}"
if [[ -d "${_chk_arch}" ]]; then
md5sum aitab > checksum.${_chk_arch}.md5
@@ -386,7 +389,7 @@ command_pkglist () {
_show_config pkglist
if _is_directory_changed "${work_dir}/root-image/var/lib/pacman/local" "${work_dir}/iso/${install_dir}/pkglist.${arch}.txt"; then
- _msg_info "Creating a list of installed packages on live-enviroment"
+ _msg_info "Creating a list of installed packages on live-enviroment..."
pacman -Sl -r "${work_dir}/root-image" --config "${pacman_conf}" | \
awk '/\[installed\]$/ {print $1 "/" $2 "-" $3}' > \
"${work_dir}/iso/${install_dir}/pkglist.${arch}.txt"