summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-23 18:47:37 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-23 18:47:37 (EST)
commit195812246f80e757ecdb28dceeb0df35a974539b (patch)
tree4756554da903f97d217eda794b91f1cc18ee3f3e
parent9b9f917e5da9d26a06a93e0bc4275f353069bdd7 (diff)
cmd/installer-pc: Add informational output
-rw-r--r--locale/en_US.sh3
-rw-r--r--src/cmd/installer-pc.sh3
2 files changed, 6 insertions, 0 deletions
diff --git a/locale/en_US.sh b/locale/en_US.sh
index cb5fe5d..77569ef 100644
--- a/locale/en_US.sh
+++ b/locale/en_US.sh
@@ -105,8 +105,11 @@ msg_prokit_cmd_build_not_a_dir='Not a directory: %s'
msg_prokit_cmd_installer_pc_summary='install a PC system onto a block device'
msg_prokit_cmd_installer_pc_usage='-a <arch> -p <plat> [-m <mirror>] '\
'<suite> <device>'
+msg_prokit_cmd_installer_pc_dd='Clearing MBR and partition table...'
msg_prokit_cmd_installer_pc_dd_fail='Failed to clear MBR and partition table'
+msg_prokit_cmd_installer_pc_fdisk='Creating partition table...'
msg_prokit_cmd_installer_pc_fdisk_fail='Failed to create partition table'
+msg_prokit_cmd_installer_pc_mkfs='Creating file system...'
msg_prokit_cmd_installer_pc_mkfs_fail='Failed to create file system'
# src/cmd/mkinitramfs.sh
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh
index 1d43793..472e885 100644
--- a/src/cmd/installer-pc.sh
+++ b/src/cmd/installer-pc.sh
@@ -107,12 +107,14 @@ cmd_installer_pc_make_partition_and_fs()
local dev="${1}"
local log=
+ info "$(get_msg 'cmd_installer_pc_dd')"
if ! log="$(dd if=/dev/zero of="${dev}" bs=512 count=1 2>&1)"; then
error "$(get_msg 'cmd_installer_pc_dd_fail')"
cmd_installer_pc_log_print 'dd' "${log}"
return 1
fi
+ info "$(get_msg 'cmd_installer_pc_fdisk')"
if ${HAVE_SFDISK}; then
if ! log="$(printf ',,83,*\n' | ${SFDISK} "${dev}" 2>&1)"; then
error "$(get_msg 'cmd_installer_pc_fdisk_fail')"
@@ -128,6 +130,7 @@ cmd_installer_pc_make_partition_and_fs()
fi
fi
+ info "$(get_msg 'cmd_installer_pc_mkfs')"
if ! log="$(${MKE2FS} -t ext4 "${dev}1" 2>&1)"; then
error "$(get_msg 'cmd_installer_pc_mkfs_fail')"
cmd_installer_pc_log_print 'mke2fs' "${log}"